Fix mdns/castv2 uncaught errors

This commit is contained in:
hensm
2021-04-24 05:24:25 +01:00
committed by Matt Hensman
parent d48efe4840
commit 99a40d8302
3 changed files with 37 additions and 16 deletions

View File

@@ -76,4 +76,8 @@ export function stopReceiverApp (host: string, port: number) {
clientConnection.send({ type: "CONNECT" });
clientReceiver.send({ type: "STOP", requestId: 1 });
});
client.on("error", err => {
console.error(`castv2 error (stopReceiverApp): ${err}`);
});
}