osc: avoid error when receiving messages during init
This commit is contained in:
parent
9b012ba5a7
commit
c99ec46263
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ var Osc = class Osc extends EventEmitter {
|
|||
|
||||
receive(data){
|
||||
|
||||
if (this.remoteControl.exists(data.address)) this.remoteControl.exec(data.address, data.args)
|
||||
if (typeof this.remoteControl.exists === 'function' && this.remoteControl.exists(data.address)) this.remoteControl.exec(data.address, data.args)
|
||||
|
||||
var [widgets, restArgs] = widgetManager.getWidgetByAddressAndArgs(data.address, data.args)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue