We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c70e77 commit 72d0469Copy full SHA for 72d0469
arduino-cloud.js
@@ -161,7 +161,11 @@ module.exports = function (RED) {
161
this.propertyName = config.name;
162
const pollTime = this.timeWindowCount * this.timeWindowUnit;
163
if(pollTime !== null && pollTime !== "" && pollTime !== undefined && Number.isInteger(parseInt(pollTime)) && parseInt(pollTime) !== 0) {
164
- this.poll(connectionConfig, pollTime);
+ this.poll(connectionConfig, pollTime);
165
+ this.on('close', function () {
166
+ if(this.pollTimeoutPoll)
167
+ clearTimeout(this.pollTimeoutPoll);
168
+ });
169
}
170
171
} catch (err) {
0 commit comments