diff --git a/src/io/ioserver.js b/src/io/ioserver.js index ae159cc7..18383b83 100644 --- a/src/io/ioserver.js +++ b/src/io/ioserver.js @@ -293,7 +293,7 @@ function emitMetrics(sock) { } }); - sock.on('disconnect', () => { + sock.once('disconnect', () => { try { promSocketCount.dec({ transport: transportName }); promSocketDisconnect.inc(1, new Date());