qol change

This commit is contained in:
2025-12-07 17:21:20 +01:00
parent 3d6774586e
commit 8f75e6491f
3 changed files with 42 additions and 45 deletions

View File

@@ -182,7 +182,7 @@ func (wsg *WebsocketGateway) Serve(ctx context.Context, listenAddr string) error
func (wsg *WebsocketGateway) read(conn *websocket.Conn, _type, channelId string) {
defer func() {
wsg.unregisterConn(conn, _type, channelId)
wsg.unregisterConn(_type, channelId)
wsg.logger.Info("Client disconnected.", "remote", conn.RemoteAddr().String())
}()