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

This commit is contained in:
bordun 2020-05-23 12:20:52 +02:00
parent 9db7ec6828
commit 9c9d2ee60f

View file

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