Properly destroy the dns_handler socket when first start fails

To correctly exit the process
This commit is contained in:
louiz’
2017-02-01 20:52:50 +01:00
parent 835c650ef5
commit e2da6fcddd
+6 -1
View File
@@ -196,7 +196,12 @@ int main(int ac, char** av)
} }
} }
else else
identd.shutdown(); {
#ifdef UDNS_FOUND
dns_handler.destroy();
#endif
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:
// close the XMPP stream. // close the XMPP stream.