Skip to content

fix(desktop): kill the node sidecar before self-update restart#61

Merged
ApocDev merged 1 commit into
mainfrom
fix/updater-kill-sidecar-on-restart
Jul 1, 2026
Merged

fix(desktop): kill the node sidecar before self-update restart#61
ApocDev merged 1 commit into
mainfrom
fix/updater-kill-sidecar-on-restart

Conversation

@ApocDev

@ApocDev ApocDev commented Jul 1, 2026

Copy link
Copy Markdown
Owner

On a self-update, updater_install calls app.restart() — but that may not run the RunEvent::Exit handler that kills the node sidecar. A lingering sidecar would keep port 34115, so the relaunched (updated) instance could fail to start its own server (the same stale-process class of bug that plagued manual testing). Kill the sidecar explicitly before restart.

app.restart() may not run the RunEvent::Exit handler, so the sidecar server could
linger and hold port 34115 — breaking the relaunched (updated) instance's own
server. Kill it explicitly before restarting.
@ApocDev
ApocDev merged commit 5b502e5 into main Jul 1, 2026
1 check passed
@ApocDev
ApocDev deleted the fix/updater-kill-sidecar-on-restart branch July 1, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant