Commit 5ea51fea authored by Ailin Nemui's avatar Ailin Nemui

follow coding style

parent cf618d55
...@@ -146,7 +146,8 @@ int main(int ac, char** av) ...@@ -146,7 +146,8 @@ int main(int ac, char** av)
// Check for empty irc_clients (not connected, or with no joined // Check for empty irc_clients (not connected, or with no joined
// channel) and remove them // channel) and remove them
xmpp_component->clean(); xmpp_component->clean();
if (identd) identd->clean(); if (identd)
identd->clean();
if (stop) if (stop)
{ {
log_info("Signal received, exiting..."); log_info("Signal received, exiting...");
...@@ -159,7 +160,8 @@ int main(int ac, char** av) ...@@ -159,7 +160,8 @@ int main(int ac, char** av)
#ifdef UDNS_FOUND #ifdef UDNS_FOUND
dns_handler.destroy(); dns_handler.destroy();
#endif #endif
if (identd) identd->shutdown(); if (identd)
identd->shutdown();
// Cancel the timer for a potential reconnection // Cancel the timer for a potential reconnection
TimedEventsManager::instance().cancel("XMPP reconnection"); TimedEventsManager::instance().cancel("XMPP reconnection");
} }
...@@ -201,7 +203,8 @@ int main(int ac, char** av) ...@@ -201,7 +203,8 @@ int main(int ac, char** av)
#ifdef UDNS_FOUND #ifdef UDNS_FOUND
dns_handler.destroy(); dns_handler.destroy();
#endif #endif
if (identd) identd->shutdown(); if (identd)
identd->shutdown();
} }
} }
// If the only existing connection is the one to the XMPP component: // If the only existing connection is the one to the XMPP component:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment