fix 500 error when user connects then disconnects immediately
parent
0509c1648a
commit
594f32e703
|
@ -243,7 +243,8 @@ def disconnect(v):
|
||||||
online["messages"].remove(v.id)
|
online["messages"].remove(v.id)
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
online[room].pop(v.id, None)
|
if online.get(room):
|
||||||
|
online[room].pop(v.id, None)
|
||||||
|
|
||||||
if v.username in typing[room]:
|
if v.username in typing[room]:
|
||||||
typing[room].remove(v.username)
|
typing[room].remove(v.username)
|
||||||
|
|
Loading…
Reference in New Issue