mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-04 15:38:20 +00:00
IPC: shutdown hooks
This commit is contained in:
1 parent
63fb0a93a2
commit
d3e81007e5
1 file changed
+1
-1
@@ -100,7 +100,7 @@ export class UnixSocketListener extends BaseEventListener {
|
||||
});
|
||||
socket.on("close", () => {
|
||||
console.log("[UnixSocketListener] Unix socket client disconnected");
|
||||
this.openConnectionsMetric.set(this.server.connections);
|
||||
this.openConnectionsMetric.set(this.server.connections ?? 0);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user