osc: prevent error when widget hash is not found

This commit is contained in:
jean-emmanuel 2017-04-25 08:13:25 +02:00
parent ef857ffdfb
commit a560dd3485

View file

@ -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]