Skip to content

Commit c9da7d7

Browse files
committed
Check terminal websocket before removing it
1 parent a227372 commit c9da7d7

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

plugins/terminals/fps_terminals/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ async def send_data(self):
7070
await websocket.send_json(["stdout", self.data_or_disconnect])
7171

7272
def quit(self, websocket):
73-
self.websockets.remove(websocket)
73+
if websocket in self.weksockets:
74+
self.websockets.remove(websocket)
7475
if not self.websockets:
7576
os.close(self.fd)

pyproject.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,3 @@ path = "jupyverse/__init__.py"
184184

185185
[tool.pytest.ini_options]
186186
asyncio_mode = "strict"
187-
188-
[tool.pixi.project]
189-
name = ""
190-
channels = ["conda-forge"]
191-
platforms = ["linux-64"]
192-
193-
[tool.pixi.dependencies]
194-
pip = ">=24.0,<25"
195-
python = "<3.12"

0 commit comments

Comments
 (0)