]> PatchyGit - patchyircd.git/commitdiff
net_cleanup after closing the listeners
authorEgor <egor@patchysicp.xyz>
Sat, 21 Oct 2023 09:11:26 +0000 (12:11 +0300)
committerEgor <egor@patchysicp.xyz>
Sat, 21 Oct 2023 09:11:26 +0000 (12:11 +0300)
src/main.c

index 97dcffa..f3cbb0c 100644 (file)
@@ -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