Commit 8d4ff8a
committed
fix: remove event-based api_server_connected — stale events caused restart loop
The connection_status_changed event handler was setting api_server_connected
to false based on stale "disconnected" events fired during Launching (before
Gateway finished logging in and labels became "connected"). When do_connected
checked the flag on first entry, it saw false and triggered an immediate
false-positive restart, doubling the launch time.
Match IBC's reactive model (GatewayDialogHandler): disconnect detection
happens via error dialog handling + active label inspection during Connected
state, NOT via async event state. The event is now logged for observability
only and does not drive state changes.1 parent 5920d68 commit 8d4ff8a
2 files changed
Lines changed: 6 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
418 | 424 | | |
419 | | - | |
420 | 425 | | |
421 | 426 | | |
422 | 427 | | |
| |||
1283 | 1288 | | |
1284 | 1289 | | |
1285 | 1290 | | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | 1291 | | |
1304 | 1292 | | |
1305 | 1293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 209 | | |
213 | 210 | | |
214 | 211 | | |
| |||
276 | 273 | | |
277 | 274 | | |
278 | 275 | | |
279 | | - | |
280 | 276 | | |
281 | 277 | | |
282 | 278 | | |
| |||
0 commit comments