From 485a50bb4b47c3604302e33147dca069a6bda849 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 15 Apr 2013 18:55:41 +0200 Subject: [PATCH] handle client_removed exception out of ClientManager as well --- src/main.cc | 4 ++++ src/remote.cc | 1 + 2 files changed, 5 insertions(+) diff --git a/src/main.cc b/src/main.cc index 927aebb0..79245fc8 100644 --- a/src/main.cc +++ b/src/main.cc @@ -231,6 +231,10 @@ int main(int argc, char* argv[]) { write_debug("error while parsing kakrc: "_str + error.what()); } + catch (Kakoune::client_removed&) + { + write_debug("error while parsing kakrc: asked to quit"); + } if (parser.positional_count() != 0) { diff --git a/src/remote.cc b/src/remote.cc index 8eb3c88b..7b68f6f8 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -452,6 +452,7 @@ private: { write_debug("error running command '" + m_buffer + "' : " + e.what()); } + catch (client_removed&) {} ClientManager::instance().redraw_clients(); close(socket); delete this;