From 642ae9417c73e41bbd56f34ea71db6f85909a520 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 9 May 2020 18:42:36 +0200 Subject: [PATCH] Fix interchanged parameters in socket.io disconnect handler. :bug: Signed-off-by: David Mehren --- lib/realtime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/realtime.ts b/lib/realtime.ts index c6daaaaa6..d8e90a1b9 100644 --- a/lib/realtime.ts +++ b/lib/realtime.ts @@ -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) })