From 936a42ae319233c56cb6b581de35e5813bbdf06b Mon Sep 17 00:00:00 2001 From: sparks-alec Date: Sat, 10 Dec 2022 23:34:47 -0500 Subject: [PATCH] bugfix with loading plugin data on non-osc devices --- src/device.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device.js b/src/device.js index 17c4f17..cf16a4f 100644 --- a/src/device.js +++ b/src/device.js @@ -132,7 +132,7 @@ function initDeviceConnection(id) { device.send = (address, args) => { device.connection.send({ address, args }); }; - device.plugin = plugins[type]; + } else if (plugins[type].config.connectionType === 'TCPsocket') { device.connection = new net.Socket(); @@ -199,6 +199,7 @@ function initDeviceConnection(id) { device.send = (data) => {}; } + device.plugin = plugins[type]; return true; }