Wait for isc_nm_stoplistening() to complete
isc_nm_stoplistening() posts a event to stop processing. controllistener should not be freed until that event has been processed. Add a callback that is called when isc_nm_stoplistening() completes.
Edited by Mark Andrews