summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-02-01 20:52:50 +0100
committerlouiz’ <louiz@louiz.org>2017-02-01 20:52:50 +0100
commite2da6fcddde7603510a266488980160d4cd462cf (patch)
treef03af622be72bae15fe1d2cb73a762d4e80d240d /src
parent835c650ef5a7297cc8bd0d6e0799186e6a5d2126 (diff)
downloadbiboumi-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
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp7
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.