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

Allow delay node in rate-limit mode to be reset

Fixes #1360
This commit is contained in:
Nick O'Leary 2017-08-04 21:09:00 +01:00
parent f808e85da9
commit 4a2e3586f1
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -171,6 +171,7 @@ module.exports = function(RED) {
}
if (msg.hasOwnProperty("reset")) {
clearInterval(node.intervalID);
node.intervalID = -1;
node.buffer = [];
node.status({text:"reset"});
}