fix closing web socket timeout

to close #738 - thanks to @GSeva for spotting it.
This commit is contained in:
Dave Conway-Jones 2015-10-20 18:58:37 +01:00
parent 1ee5e50d50
commit 2569a35b6c
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ module.exports = function(RED) {
else {
node.closing = true;
node.server.close();
if (node.tout) { clearTimeout(tout); }
if (node.tout) { clearTimeout(node.tout); }
}
});
}