mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 09:04:44 -04: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
|
// when a new client disconnect
|
||||||
socket.on('disconnect', function () {
|
socket.on('disconnect', function () {
|
||||||
if (isDuplicatedInSocketQueue(socket, disconnectSocketQueue)) return
|
if (isDuplicatedInSocketQueue(disconnectSocketQueue, socket)) return
|
||||||
disconnectSocketQueue.push(socket)
|
disconnectSocketQueue.push(socket)
|
||||||
disconnect(socket)
|
disconnect(socket)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue