summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index adc0c7c..159dcbe 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -203,6 +203,8 @@ int main(int ac, char** av)
#ifdef CARES_FOUND
DNSHandler::instance.destroy();
#endif
+ if (!xmpp_component->ever_auth)
+ return 1; // To signal that the process did not properly start
log_info("All connections cleanly closed, have a nice day.");
return 0;
}