Log bridge media server stop errors

This commit is contained in:
hensm
2022-09-20 15:53:37 +01:00
parent 72d82987f3
commit ab23ab2e03

View File

@@ -10,9 +10,13 @@ import { applicationVersion } from "../../config.json";
process.on("SIGTERM", async () => {
discovery?.stop();
await stopMediaServer();
process.exit(1);
try {
await stopMediaServer();
} catch (err) {
console.error("Error stopping media server!", err);
} finally {
process.exit(1);
}
});
let discovery: Discovery | null = null;