Update.
This commit is contained in:
parent
374db23669
commit
f3d12a257e
@ -27,6 +27,8 @@ class SocketService(BaseService):
|
|||||||
await ws.send_json(message)
|
await ws.send_json(message)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print(ex)
|
print(ex)
|
||||||
|
print("Deleting socket.")
|
||||||
|
self.subscriptions[channel_uid].remove(ws)
|
||||||
continue
|
continue
|
||||||
count += 1
|
count += 1
|
||||||
return count
|
return count
|
||||||
|
@ -61,7 +61,7 @@ class Cache:
|
|||||||
|
|
||||||
if is_new:
|
if is_new:
|
||||||
self.version += 1
|
self.version += 1
|
||||||
print("New version:", self.version, flush=True)
|
print("Cache store! New version:", self.version, flush=True)
|
||||||
|
|
||||||
async def delete(self, args):
|
async def delete(self, args):
|
||||||
if args in self.cache:
|
if args in self.cache:
|
||||||
|
Loading…
Reference in New Issue
Block a user