Commit 778da8c
fix: prevent spurious 'session not found' warns on session close (#26)
When closing the only session, the WebSocket \onclose\ reconnect handler
races with \ emoveSession()\ cleanup. The reconnect fires, opens a new
WS, and sends \�ttach\ for the already-deleted session — producing two
spurious warn logs.
**Fix:** Set \ms.exited = true\ and clear the reconnect timer *before*
closing the WebSocket in \ emoveSession()\, so the \onclose\ handler
skips reconnection.
---
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d97ea5f commit 778da8c
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
1353 | | - | |
1354 | | - | |
1355 | 1353 | | |
1356 | 1354 | | |
| 1355 | + | |
| 1356 | + | |
1357 | 1357 | | |
1358 | | - | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1359 | 1363 | | |
1360 | 1364 | | |
1361 | 1365 | | |
| |||
2169 | 2173 | | |
2170 | 2174 | | |
2171 | 2175 | | |
| 2176 | + | |
| 2177 | + | |
2172 | 2178 | | |
2173 | | - | |
2174 | 2179 | | |
2175 | 2180 | | |
2176 | 2181 | | |
| |||
0 commit comments