1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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); }
}
});
}