mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Log bridge media server stop errors
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user