mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
ioserver: change on disconnect to once to avoid double-counting
This commit is contained in:
parent
82bd645781
commit
82004aab73
1 changed files with 1 additions and 1 deletions
|
|
@ -293,7 +293,7 @@ function emitMetrics(sock) {
|
|||
}
|
||||
});
|
||||
|
||||
sock.on('disconnect', () => {
|
||||
sock.once('disconnect', () => {
|
||||
try {
|
||||
promSocketCount.dec({ transport: transportName });
|
||||
promSocketDisconnect.inc(1, new Date());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue