drachtio-freeswitch-modules
drachtio-freeswitch-modules copied to clipboard
fix hanging connects in case of hostname resolve failure
In case of failure to resolve hostname, pendingConnects buffer never empties as it containes nullptr wsi. Additionally, this stops FreeSWITCH from gracefully shutting down.
This fix removes nullptr connects from the buffer, solving the problem.