Revert "osc: defered loading of remote-control is no longer needed -> avoid error when receiving osc too early"

This reverts commit 574489b14c.
This commit is contained in:
bordun 2020-05-23 15:45:29 +02:00
parent 54f1c79046
commit 4e0efbb749

View file

@ -10,9 +10,13 @@ var Osc = class Osc extends EventEmitter {
super()
this.syncOnly = false
this.remoteControl = require('./remote-control')
this.remoteControl = {}
this.serverTargets = []
setTimeout(()=>{
osc.remoteControl = require('./remote-control')
})
}
send(data) {