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 a227372 commit c9da7d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
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)
9 changes: 0 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,3 @@ path = "jupyverse/__init__.py"

[tool.pytest.ini_options]
asyncio_mode = "strict"

[tool.pixi.project]
name = ""
channels = ["conda-forge"]
platforms = ["linux-64"]

[tool.pixi.dependencies]
pip = ">=24.0,<25"
python = "<3.12"

0 comments on commit c9da7d7

Please sign in to comment.