fix event

This commit is contained in:
Jonathan Rainville 2018-10-03 16:46:13 -04:00 committed by Pascal Precht
parent 328d9c7c07
commit 211321a914
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 5 additions and 4 deletions

View File

@ -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');
});
});