Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
[samples] Fix TCPClient6.js sample to check for right error name
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Gustafson <geoff@linux.intel.com>
  • Loading branch information
grgustaf committed Aug 31, 2017
1 parent 131d79b commit 27a2c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/TCPClient6.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ net_cfg.on('netup', function() {
console.log("Socket has closed");
});
client.on("error", function(err) {
if (err.name == "NotFoundError") {
if (err.name == "Error") {
console.log("Server not found, retrying in 2 seconds");
setTimeout(function() {
if (!is_connected) {
Expand Down

0 comments on commit 27a2c57

Please sign in to comment.