forked from rDrama/rDrama
trying to fix annoying bug
parent
b7b7036b08
commit
d5b4818d61
|
@ -95,7 +95,7 @@ def connect(v):
|
||||||
if v.username not in online:
|
if v.username not in online:
|
||||||
online.append(v.username)
|
online.append(v.username)
|
||||||
emit("online", online, broadcast=True)
|
emit("online", online, broadcast=True)
|
||||||
cache.set(f'{SITE}_online', len(online))
|
cache.set(ONLINE_STR, len(online))
|
||||||
|
|
||||||
emit('typing', typing)
|
emit('typing', typing)
|
||||||
return '', 204
|
return '', 204
|
||||||
|
@ -106,7 +106,7 @@ def disconnect(v):
|
||||||
if v.username in online:
|
if v.username in online:
|
||||||
online.remove(v.username)
|
online.remove(v.username)
|
||||||
emit("online", online, broadcast=True)
|
emit("online", online, broadcast=True)
|
||||||
cache.set(f'{SITE}_online', len(online))
|
cache.set(ONLINE_STR, len(online))
|
||||||
|
|
||||||
if v.username in typing: typing.remove(v.username)
|
if v.username in typing: typing.remove(v.username)
|
||||||
emit('typing', typing, broadcast=True)
|
emit('typing', typing, broadcast=True)
|
||||||
|
|
Loading…
Reference in New Issue