console: send fix

This commit is contained in:
bordun 2020-11-18 23:34:07 +01:00
parent 0966f7b754
commit ea641956bf

View file

@ -23,6 +23,10 @@ module.exports = {
if (settings.read('load') && !data.hotReload) return this.sessionOpen({path: settings.read('load')}, clientId)
if (!widgetHashTable[clientId]) {
widgetHashTable[clientId] = {CONSOLE: {typeTags: ''}}
}
},
close(data, clientId) {
@ -360,10 +364,6 @@ module.exports = {
addWidget(data, clientId) {
// cache widget osc data to reduce bandwidth usage
if (!widgetHashTable[clientId]) {
widgetHashTable[clientId] = {CONSOLE: {}}
}
if (!widgetHashTable[clientId][data.hash]) {
widgetHashTable[clientId][data.hash] = {}
}