diff --git a/server/identification.ts b/server/identification.ts index 23912ef7..6d7af382 100644 --- a/server/identification.ts +++ b/server/identification.ts @@ -116,14 +116,12 @@ class Identification { refresh() { let file = "# Warning: file generated by The Lounge: changes will be overwritten!\n"; - this.connections.forEach((connection) => { + this.connections.forEach((connection, id) => { if (!connection.socket.remotePort || !connection.socket.localPort) { // Race condition: this can happen when more than one socket gets disconnected at // once, since we `refresh()` for each one being added/removed. This results // in there possibly being one or more disconnected sockets remaining when we get here. - // - // Simply skip this socket and do not crash the server. - log.warn("oidentd: socket has no remote or local port. See https://github.com/thelounge/thelounge/pull/4695."); + log.warn(`oidentd: socket has no remote or local port (id=${id}). See https://github.com/thelounge/thelounge/pull/4695.`); return; }