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

Fix timer reference in node close handling

This commit is contained in:
Nick O'Leary 2020-04-02 23:24:18 +01:00
parent f058de8bcd
commit 9d4400349b
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -573,7 +573,7 @@ function stopNode(node,removed) {
const closePromise = node.close(removed);
let closeTimer = null;
const closeTimeout = new Promise((resolve,reject) => {
closePromise = setTimeout(() => {
closeTimer = setTimeout(() => {
reject("Close timed out");
}, nodeCloseTimeout);
});