don't overwrite intervalhandle
This commit is contained in:
parent
bd28d30c4b
commit
74e4439ca2
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue