Fix interchanged parameters in socket.io disconnect handler. 🐛

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-05-09 18:42:36 +02:00
parent 394abe7cf8
commit 642ae9417c
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -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)
})