Skip to content

Commit 3244627

Browse files
committed
Merge.
2 parents 38db2df + e8c64cf commit 3244627

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

django_socketio/views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,8 @@ def socketio(request):
7070
print_exc()
7171
events.on_error.send(request, socket, context, exception)
7272
events.on_finish.send(request, socket, context)
73+
from django_socketio.channels import CHANNELS
74+
for channel in socket.channels:
75+
CHANNELS[channel].remove(socket.session.session_id)
7376
del CLIENTS[socket.session.session_id]
7477
return HttpResponse("")

0 commit comments

Comments
 (0)