Skip to content

Commit

Permalink
Try the auto server suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHerve-Descours-Cabaud committed Jun 11, 2024
1 parent 96483c9 commit 729ff77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions instance/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ async def handler(websocket, path):
clients.remove(websocket)
if websocket == server:
server = None
if len(clients) == 0:
stop()

async def main():
async with websockets.serve(handler, "0.0.0.0", 8000):
Expand Down
3 changes: 0 additions & 3 deletions instance/run.sh

This file was deleted.

0 comments on commit 729ff77

Please sign in to comment.