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
+5
View File
@@ -196,8 +196,13 @@ int main(int ac, char** av)
}
}
else
{
#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.
if (exiting && xmpp_component->is_connecting())