diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index ad977c129..655cfb6aa 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -103,10 +103,11 @@ class Server { wss.clients.forEach(function (client) { client.send('outputDone'); }); - self.events.on('outputError', () => { - wss.clients.forEach(function (client) { - client.send('outputError'); - }); + }); + + self.events.on('outputError', () => { + wss.clients.forEach(function (client) { + client.send('outputError'); }); });