Skip to content

Commit a864314

Browse files
committed
Simplify
1 parent 80f42c2 commit a864314

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

template/server/messaging.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,6 @@ def __init__(self, context_id: str, session_id: str, language: str, cwd: str):
6666
self._lock = asyncio.Lock()
6767

6868
async def reconnect(self):
69-
# The results can be already lost
70-
for key, execution in self._executions.items():
71-
await execution.queue.put(
72-
Error(
73-
name="WebSocketError",
74-
value="The connections was lost, rerun the code to get the results",
75-
traceback="",
76-
)
77-
)
78-
await execution.queue.put(UnexpectedEndOfExecution())
79-
8069
if self._ws is not None:
8170
await self._ws.close(reason="Reconnecting")
8271

0 commit comments

Comments
 (0)