handle client_removed exception out of ClientManager as well
This commit is contained in:
parent
da4be95c90
commit
485a50bb4b
|
@ -231,6 +231,10 @@ int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
write_debug("error while parsing kakrc: "_str + error.what());
|
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)
|
if (parser.positional_count() != 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -452,6 +452,7 @@ private:
|
||||||
{
|
{
|
||||||
write_debug("error running command '" + m_buffer + "' : " + e.what());
|
write_debug("error running command '" + m_buffer + "' : " + e.what());
|
||||||
}
|
}
|
||||||
|
catch (client_removed&) {}
|
||||||
ClientManager::instance().redraw_clients();
|
ClientManager::instance().redraw_clients();
|
||||||
close(socket);
|
close(socket);
|
||||||
delete this;
|
delete this;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user