fix error when joining and leaving chat instantly before heartbeat happens

master
Aevann 2024-04-10 05:05:56 +02:00
parent 3e37abc7ab
commit 7ed89dd111
1 changed files with 3 additions and 1 deletions

View File

@ -250,7 +250,9 @@ def disconnect(v):
typing[room].remove(v.username)
leave_room(room)
refresh_online(room)
if online.get(room):
refresh_online(room)
commit_and_close()