Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/ipcInterface/ipcInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,13 @@ ipcInterface.prototype = Object.assign({
this.socket.on('error', (error) => this.errHandler(error));

// Parse the data received from the socket and handle it to the mpv module
this.socket.on('data', (data) => this.dataHandler(data));
this.socket.on('data', (data) => {
try {
this.dataHandler(data)
} catch (error) {
this.errHandler(error)
}
});

// partially 'fixes' the EventEmitter leak
// the leaking listeners is 'close', but I did not yet find any solution to fix it
Expand Down