mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-03-24 11:24:00 +00:00
Fix interchanged parameters in socket.io disconnect handler. 🐛
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
394abe7cf8
commit
642ae9417c
1 changed files with 1 additions and 1 deletions
|
@ -947,7 +947,7 @@ function connection (socket) {
|
|||
|
||||
// when a new client disconnect
|
||||
socket.on('disconnect', function () {
|
||||
if (isDuplicatedInSocketQueue(socket, disconnectSocketQueue)) return
|
||||
if (isDuplicatedInSocketQueue(disconnectSocketQueue, socket)) return
|
||||
disconnectSocketQueue.push(socket)
|
||||
disconnect(socket)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue