mirror of
https://github.com/nestriness/nestri.git
synced 2026-11-03 22:22:39 +02:00
POST /session/:id/stop. A run no host has claimed ends at once; one that is starting or live is marked with time_stop_requested and its host is handed a session.stop with reason `user` on every poll until it reports the run ended. The host already ends a run the same way whatever the reason, so no host change is needed. Asking twice keeps the first time asked, and asking of a finished run changes nothing. Somebody else's run answers 404, and a host cannot stop a run as its owner.