Skip to content

fix: stop the desktop event queue on shutdown - #33

Merged
kushiemoon-dev merged 1 commit into
mainfrom
fix/serial-emitter-shutdown
Nov 20, 2026
Merged

kushiemoon-dev merged 1 commit into
mainfrom
fix/serial-emitter-shutdown

Conversation

@kushiemoon-dev

Copy link
Copy Markdown
Owner

Summary of this PR

The serial event queue kept calling the window after the app began to shut down, for as long as its backlog lasted. serialEmitter.Close() now drops the backlog, ignores later sends and releases a send that was waiting for room; App.Shutdown calls it.

Three tests: the backlog is dropped and sends after Close neither block nor emit, a send blocked on a full queue is released, and Shutdown stops the queue.

Change category

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (please specify)

Pre-merge checklist

  • wails build succeeds
  • Manually verified
  • No breaking changes introduced (or noted below)

Close the serial event queue when the app shuts down: the backlog is
dropped, later sends are ignored and a send waiting for room is
released. Before, the queue kept calling the window for as long as its
backlog lasted after the app began to shut down.
@kushiemoon-dev
kushiemoon-dev merged commit ecc07f7 into main Nov 20, 2026
17 of 19 checks passed
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