osc: prevent error when widget hash is not found
This commit is contained in:
parent
ef857ffdfb
commit
a560dd3485
1 changed files with 3 additions and 0 deletions
|
|
@ -145,6 +145,8 @@ module.exports = {
|
|||
|
||||
syncOsc: function(data, clientId) {
|
||||
|
||||
if (!(widgetHashTable[clientId] && widgetHashTable[clientId][data.h])) return
|
||||
|
||||
var value = data.v,
|
||||
data = widgetHashTable[clientId][data.h]
|
||||
|
||||
|
|
@ -156,6 +158,7 @@ module.exports = {
|
|||
|
||||
sendOsc: function(data, clientId) {
|
||||
|
||||
if (!(widgetHashTable[clientId] && widgetHashTable[clientId][data.h])) return
|
||||
|
||||
var value = data.v,
|
||||
data = widgetHashTable[clientId][data.h]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue