~singpolyma/biboumi

5ea51fea1b4efadbf3d3ec26dbef930280e7275c — Ailin Nemui 5 years ago cf618d5
follow coding style
1 files changed, 6 insertions(+), 3 deletions(-)

M src/main.cpp
M src/main.cpp => src/main.cpp +6 -3
@@ 146,7 146,8 @@ int main(int ac, char** av)
    // Check for empty irc_clients (not connected, or with no joined
    // channel) and remove them
    xmpp_component->clean();
    if (identd) identd->clean();
    if (identd)
      identd->clean();
    if (stop)
    {
      log_info("Signal received, exiting...");


@@ 159,7 160,8 @@ int main(int ac, char** av)
#ifdef UDNS_FOUND
      dns_handler.destroy();
#endif
      if (identd) identd->shutdown();
      if (identd)
	identd->shutdown();
      // Cancel the timer for a potential reconnection
      TimedEventsManager::instance().cancel("XMPP reconnection");
    }


@@ 201,7 203,8 @@ int main(int ac, char** av)
#ifdef UDNS_FOUND
          dns_handler.destroy();
#endif
          if (identd) identd->shutdown();
          if (identd)
	    identd->shutdown();
        }
    }
    // If the only existing connection is the one to the XMPP component: