diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-11-12 22:28:13 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-11-12 22:28:13 +0800 |
| commit | 208f9641ef8e7b5900bbbd88b2852dfa434ebfee (patch) | |
| tree | fb621a5e96cc7e595aac7c251c068077c0c7877a /src/remote.hh | |
| parent | 00e06302722a5b15a292b10d165dff640a3d3ce0 (diff) | |
Remote: when converting to client, suspend *after* connecting
Also, do not quit server while there is a connection being accepted
Fixes #1690
Diffstat (limited to 'src/remote.hh')
| -rw-r--r-- | src/remote.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/remote.hh b/src/remote.hh index b270bc47..d723713f 100644 --- a/src/remote.hh +++ b/src/remote.hh @@ -53,6 +53,8 @@ struct Server : public Singleton<Server> bool rename_session(StringView name); void close_session(bool do_unlink = true); + bool negotiating() const { return not m_accepters.empty(); } + private: class Accepter; void remove_accepter(Accepter* accepter); |
