diff options
author | louiz’ <louiz@louiz.org> | 2017-02-01 20:52:50 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-02-01 20:52:50 +0100 |
commit | e2da6fcddde7603510a266488980160d4cd462cf (patch) | |
tree | f03af622be72bae15fe1d2cb73a762d4e80d240d | |
parent | 835c650ef5a7297cc8bd0d6e0799186e6a5d2126 (diff) | |
download | biboumi-e2da6fcddde7603510a266488980160d4cd462cf.tar.gz biboumi-e2da6fcddde7603510a266488980160d4cd462cf.tar.bz2 biboumi-e2da6fcddde7603510a266488980160d4cd462cf.tar.xz biboumi-e2da6fcddde7603510a266488980160d4cd462cf.zip |
Properly destroy the dns_handler socket when first start fails
To correctly exit the process
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index bc8e779..76ab5d9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -196,7 +196,12 @@ int main(int ac, char** av) } } else - identd.shutdown(); + { +#ifdef UDNS_FOUND + dns_handler.destroy(); +#endif + identd.shutdown(); + } } // If the only existing connection is the one to the XMPP component: // close the XMPP stream. |