Skip to main content

Module host_quit

Module host_quit 

Source
Expand description

Quitting the host: the tray’s “Quit AgentMux” and the restart into a new version the user agreed to.

These used to send quit_app to the host’s HTTP port with the token from the port file, which made that token able to quit the app. They now go over the launcher’s own pipe to the host (Command::QuitApp), so the token only opens and raises windows.

A host from another version may not know QuitApp (it would drop it without a word), so for one the launcher falls back to the HTTP command that host still takes. A host that has not registered yet is waited for, as the tray always did.

Structs§

Installed 🔒

Enums§

Step 🔒
What to try next, given what the launcher knows of the host.

Statics§

INSTALLED 🔒

Functions§

install
Called by the supervisor once it has the host pipe and the launcher state, from inside its runtime.
quit_host
Quits the host. Blocking: runs on the tray’s thread or a blocking task, never on the async runtime.
step 🔒