Properly destroy the dns_handler socket when first start fails
To correctly exit the process
This commit is contained in:
1 parent
835c650ef5
commit
e2da6fcddd
1 file changed
+5
@@ -196,8 +196,13 @@ int main(int ac, char** av)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
#ifdef UDNS_FOUND
|
||||||
|
dns_handler.destroy();
|
||||||
|
#endif
|
||||||
identd.shutdown();
|
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.
|
||||||
if (exiting && xmpp_component->is_connecting())
|
if (exiting && xmpp_component->is_connecting())
|
||||||
|
|||||||
Reference in new issue
Block a user