parent
91337d6091
commit
ac73f7c27f
|
@ -123,13 +123,14 @@ void ClientManager::remove_client(Client& client, bool graceful, int status)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
client.exit(status);
|
|
||||||
m_client_trash.push_back(std::move(*it));
|
m_client_trash.push_back(std::move(*it));
|
||||||
m_clients.erase(it);
|
m_clients.erase(it);
|
||||||
|
|
||||||
auto& context = client.context();
|
auto& context = client.context();
|
||||||
context.hooks().run_hook(Hook::ClientClose, context.name(), context);
|
context.hooks().run_hook(Hook::ClientClose, context.name(), context);
|
||||||
|
|
||||||
|
client.exit(status);
|
||||||
|
|
||||||
if (not graceful and m_clients.empty())
|
if (not graceful and m_clients.empty())
|
||||||
BufferManager::instance().backup_modified_buffers();
|
BufferManager::instance().backup_modified_buffers();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user