Remove disconnected IrcClients

This commit is contained in:
Florent Le Coz
2014-01-04 01:59:35 +01:00
parent aa53276859
commit e8e592d1ac
6 changed files with 41 additions and 3 deletions
+3
View File
@@ -81,6 +81,9 @@ int main(int ac, char** av)
const std::chrono::milliseconds timeout(-1);
while (p.poll(timeout) != -1 || !exiting)
{
// Check for empty irc_clients (not connected, or with no joined
// channel) and remove them
xmpp_component->clean();
if (stop)
{
log_info("Signal received, exiting...");