# TmuxError.connectionClosed

- **Module:** TmuxError
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** constant
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/TmuxError.swift#L59
- **Page:** https://libtmux.org/reference/swift/tmuxerror-connectionclosed/

A control-mode connection ended while a command was still waiting.

Distinct from ``serverRestarted``: tmux says `%exit` when it is
closing this client — because the session it was attached to went
away, or the server is shutting down — which says nothing about a
replacement daemon having appeared.
