osc: better init task
This commit is contained in:
parent
ac19ed3c1a
commit
407459a36a
1 changed files with 4 additions and 7 deletions
|
|
@ -190,15 +190,12 @@ class OscServer {
|
|||
})
|
||||
|
||||
oscUDPServer.on('message', this.oscInHandlerWrapper.bind(this))
|
||||
oscTCPServer.on('message', this.oscInHandlerWrapper.bind(this))
|
||||
|
||||
oscUDPServer.on('error', function(error) {
|
||||
console.error(error)
|
||||
})
|
||||
|
||||
oscUDPServer.open()
|
||||
|
||||
if (settings.read('tcpInPort')) oscTCPServer.open()
|
||||
if (settings.read('tcpInPort')) {
|
||||
oscTCPServer.on('message', this.oscInHandlerWrapper.bind(this))
|
||||
oscTCPServer.open()
|
||||
}
|
||||
|
||||
if (this.customModule.init) {
|
||||
this.customModule.init()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue