# HG changeset patch # User Josef 'Jeff' Sipek # Date 1750681693 14400 # Mon Jun 23 08:28:13 2025 -0400 # Node ID 34b5c0e2a9d012c7a3dfeee005d2b4587f56003e # Parent b13f0216ce3578558c15016f0be2fc60e36c2157 socksvc: stop listening after the worker threads have finished It should be fine either way since only the main socksvc thread should be touching the listening sockets, but at a glance it looks more correct to stop all the threads and then close the sockets. Signed-off-by: Josef 'Jeff' Sipek diff --git a/socksvc.c b/socksvc.c --- a/socksvc.c +++ b/socksvc.c @@ -332,10 +332,10 @@ cmn_err(CE_ERROR, "%s: failed to join thread: %s\n", __func__, xstrerror(ret)); - stop_listening(state); - taskq_wait(state->taskq); taskq_destroy(state->taskq); + stop_listening(state); + free(state); }