stephenmcd/django-socketio — Issue #18: client_end bug
Author: airamjimenez
Created: 2012-02-16 01:15:53+00:00
State: open

this iteration(clients.py):
# Actually unsubscribe to cleanup channel data.
for channel in socket.channels:
socket.unsubscribe(channel)
and this line in unsubscribe(channels.py)
self.channels.remove(channel)
it makes the iteration to skip some channels, because its uses the same list. I fixed this making a copy of channels
channels = socket.channels[:]
for channel in channels:
socket.unsubscribe(channel)