PunktfunkPunktfunk
Streaming

When a game ends

Choose what the host does when a launched game exits, when its session ends and when you launch another, and how keep-alive decides it on gamescope.

Choose whether a stream ends with its game, and whether a game closes when you disconnect.

When a game ends, and when a session does

Linux and Windows hosts. In Host → Session in the web console. These act only on a game the host launched for the session, never one you started yourself.

SettingOptions (default first)
When the game exitsEnd the session: the client returns to its library · Keep streaming
When the session endsLeave it running · Close it on Stop: closing the client closes the game, a dropped connection doesn't · Always close it: a dropped connection closes it too, after the reconnect window
When you launch another gameLeave it running · Close it first: only this device's earlier launch
Reconnect window300 s (10 s to 24 h). Reconnecting cancels it; Home shows the countdown and End now.

Closing asks the game to quit like its window's close button, and forces it after 10 seconds. Unsaved progress is lost, which is why nothing closes by default. A player can still close one: see Ending a game.

Keep-alive is how long the screen outlives a disconnect; the reconnect window is how long the game does.

On gamescope, keep-alive decides

A game in its own gamescope (a dedicated session, or a Steam Deck or Bazzite couch box) lives exactly as long as its screen:

You disconnect byThe game
Stop on the client or in the consoleends with the screen at once, even on Leave it running
a dropped connectionends when the keep-alive window runs out
the host going to sleepas a dropped connection, and the sleep counts against the window

With Keep until released the screen outlives every disconnect, Stop included, so the game keeps running; When the session ends can still close it. To leave a game running on a gamescope box, keep its screen until released. On a desktop session (KWin, GNOME, Sway) the settings above apply as written.

Hooks can react to game.running and game.exited: see Automation.

On this page