osc: better init task

This commit is contained in:
jean-emmanuel 2018-05-25 13:42:25 +02:00
parent 0119298480
commit 2163f19198

View file

@ -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()