don't overwrite intervalhandle

This commit is contained in:
Sebastian Wiedenroth 2016-04-09 18:11:48 +02:00
parent bd28d30c4b
commit 74e4439ca2

View file

@ -37,11 +37,11 @@ EnttecOpenUsbDMX.prototype.send_universe = function() {
} }
EnttecOpenUsbDMX.prototype.start = function() { EnttecOpenUsbDMX.prototype.start = function() {
this.interval = setInterval(this.send_universe.bind(this), this.sleepTime) this.intervalhandle = setInterval(this.send_universe.bind(this), this.interval)
} }
EnttecOpenUsbDMX.prototype.stop = function() { EnttecOpenUsbDMX.prototype.stop = function() {
clearInterval(this.interval) clearInterval(this.intervalhandle)
} }
EnttecOpenUsbDMX.prototype.close = function(cb) { EnttecOpenUsbDMX.prototype.close = function(cb) {