# TmuxError.connectionClosed

- **Module:** TmuxError
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** constant
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/TmuxError.swift#L60
- **Page:** https://libtmux.org/en/swift/latest/reference/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.
