Repair bug in timer-driver.js

This commit is contained in:
Tony Garnock-Jones 2018-10-24 12:39:08 +01:00
parent ce706583e5
commit 81ae56d7a8
1 changed files with 4 additions and 1 deletions

View File

@ -80,7 +80,10 @@ Alarm.prototype.checkTimeout = function () {
this.cancelTimer();
} else if (this.handle === null) {
var self = this;
this.handle = setTimeout(Dataspace.wrap(function () { self.checkTimeout(); }), delta);
this.handle = setTimeout(Dataspace.wrap(function () {
self.handle = null;
self.checkTimeout();
}), delta);
}
};