We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 523048f commit c2f9970Copy full SHA for c2f9970
1 file changed
lib/realtime.js
@@ -298,7 +298,7 @@ function startConnection(socket) {
298
socket.disconnect(true);
299
//clear err socket in queue
300
for (var i = 0; i < connectionSocketQueue.length; i++) {
301
- if (connectionSocketQueue[i].id == socket.id)
+ if (!connectionSocketQueue[i] || connectionSocketQueue[i].id == socket.id)
302
connectionSocketQueue.splice(i, 1);
303
}
304
isConnectionBusy = false;
0 commit comments