From: Egor Date: Sat, 21 Oct 2023 09:11:26 +0000 (+0300) Subject: net_cleanup after closing the listeners X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=fc58df2503f3bcd6794ac71b0bc2225261848440;p=patchyircd.git net_cleanup after closing the listeners --- diff --git a/src/main.c b/src/main.c index 97dcffa..f3cbb0c 100644 --- a/src/main.c +++ b/src/main.c @@ -385,9 +385,9 @@ int main(int argc, char *argv[]) * killed? */ cl = next; } - net_cleanup(); for (int i = 0; i < listener_count; i++) closesocket(listeners[i].sock); + net_cleanup(); #ifdef HAS_TLS tls_free(tls_ctx); #endif