Skip to content

Commit

Permalink
Check terminal websocket before removing it
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Apr 29, 2024
1 parent 17670ff commit dd2880d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/terminals/fps_terminals/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async def send_data(self):
await websocket.send_json(["stdout", self.data_or_disconnect])

def quit(self, websocket):
self.websockets.remove(websocket)
if websocket in self.weksockets:
self.websockets.remove(websocket)
if not self.websockets:
os.close(self.fd)

0 comments on commit dd2880d

Please sign in to comment.