diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-04-12 09:02:59 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-04-12 13:23:38 +1000 |
| commit | ef1fd3acb95a58900d73a194ce8339b5301dfd0b (patch) | |
| tree | aeeb86a5c33a4985943cad6dd7686a49a967f74c /src/main.cc | |
| parent | f732ea4efb13ced7055a7cc82d30c6cff0a558d3 (diff) | |
Prevent conversion to client on suspend from disconnecting other clients
clear the client manager in the to be converted process without
sending exit messages as the forked server will still be there.
Fixes #2847
Diffstat (limited to 'src/main.cc')
| -rw-r--r-- | src/main.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index 6b533003..d115ef2f 100644 --- a/src/main.cc +++ b/src/main.cc @@ -801,6 +801,7 @@ int run_server(StringView session, StringView server_init, if (fork_server_to_background()) { + ClientManager::instance().clear(false); String session = server.session(); server.close_session(false); throw convert_to_client_mode{ std::move(session), std::move(client_name), std::move(buffer_name), std::move(selections) }; |
