osc: avoid error when receiving messages during init
This commit is contained in:
parent
7779bf3122
commit
6eff1677a9
2 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"name": "open-stage-control",
|
||||
"productName": "Open Stage Control",
|
||||
"description": "Libre and modular OSC / MIDI controller",
|
||||
"version": "1.0.0-beta9",
|
||||
"version": "1.0.0-beta10",
|
||||
"author": {
|
||||
"name": "Jean-Emmanuel Doucet",
|
||||
"email": "jean-emmanuel@ammd.net"
|
||||
|
|
|
|||
|
|
@ -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