You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling close on an instance of Server crashes with a ConcurrentModificationError when any clients are connected.
This happens due to removing sockets from the nsps["/"].sockets list while iterating over it.
As a quick fix for now I came up with following solution:
while (nsps['/'].sockets.length > 0)
{
var socket = nsps['/'].sockets.first;
socket.onclose();
}
Is this a know issue?
The text was updated successfully, but these errors were encountered:
Calling close on an instance of Server crashes with a ConcurrentModificationError when any clients are connected.
This happens due to removing sockets from the
nsps["/"].sockets
list while iterating over it.As a quick fix for now I came up with following solution:
Is this a know issue?
The text was updated successfully, but these errors were encountered: