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:
parent
f058de8bcd
commit
9d4400349b
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user