diff --git a/app/main/osc/index.js b/app/main/osc/index.js index bb1f1967..dc9280d1 100644 --- a/app/main/osc/index.js +++ b/app/main/osc/index.js @@ -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()