osc: catch server error when port is invalid
This commit is contained in:
parent
922d58a380
commit
f081f0c3b8
1 changed files with 5 additions and 0 deletions
|
|
@ -164,6 +164,11 @@ class OscServer {
|
|||
return
|
||||
}
|
||||
|
||||
if (isNaN(parseInt(data.port))) {
|
||||
console.error('(ERROR, OSC) Invalid port: ' + data.port)
|
||||
return
|
||||
}
|
||||
|
||||
if (tcpInPort && oscTCPServer.clients[data.host] && oscTCPServer.clients[data.host][data.port]) {
|
||||
|
||||
oscTCPServer.clients[data.host][data.port].send({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue