Commit 24acd75
fix: disconnect live data sources regardless of connection state when disabled
When a live data source server went down, EventSource entered the
CONNECTING (reconnecting) state. Disabling the source only called
disconnect() when isConnected() was true (readyState === OPEN),
so reconnecting sources were never stopped.
Closes #102
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 641f5c2 commit 24acd75
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments