Properly destroy the dns_handler socket when first start fails
To correctly exit the process
This commit is contained in:
@@ -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