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
1 changed files with 1 additions and 0 deletions

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