Clean up classes before exiting them

This commit is contained in:
LoveEevee
2018-09-18 01:37:59 +03:00
parent f19fbf5371
commit e8809285e0
25 changed files with 1183 additions and 1172 deletions

View File

@@ -51,6 +51,9 @@ async def connection(ws, path):
except asyncio.TimeoutError:
# Disconnect
break
except websockets.exceptions.ConnectionClosed:
# Connection closed
break
else:
# Message received
try: