Commit 65d08ef
fix(claw-pilot): stopAccount before restart on config change (PILOT-188) (#2)
onAccountConfigChanged stopped the transport but left the account in
PilotLifecycle.accounts, so the subsequent startAll → startAccount call
threw "already running". The error was caught and routed to
scheduleRetry, causing live config changes to be silently lost until
gateway restart.
Added PilotLifecycle.stopAccount() that stops transport + pipeline +
drainTimer and removes the account from the map in a single idempotent
operation. Replaced the manual transport.stop() in onAccountConfigChanged
with stopAccount().
Note: Bug 1 (handshakeTrustAutoApprove dead config) confirmed but
deferred — removing the flag touches 5 files (types, resolver, schema,
3 test files). Operator should split to a follow-up or handle manually.
Closes PILOT-188
Co-authored-by: matthew-pilot <matthew-pilot@vulturelabs.io>1 parent 526f35e commit 65d08ef
2 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 138 | + | |
142 | 139 | | |
143 | 140 | | |
144 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
278 | 291 | | |
279 | 292 | | |
280 | 293 | | |
| |||
0 commit comments