handle client_removed exception out of ClientManager as well

This commit is contained in:
Maxime Coste 2013-04-15 18:55:41 +02:00
parent da4be95c90
commit 485a50bb4b
2 changed files with 5 additions and 0 deletions

View File

@ -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)
{

View File

@ -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;