fnet.c

Simple C networking library
git clone git://git.finwo.net/lib/fnet.c
Log | Files | Refs | README

commit 31a136faf1f4c248a8215f8999a486e74f26fe7d
parent 1f4751b43d6ee518cab167f19483f14b1e09f864
Author: Yersa Nordman <yersa@finwo.nl>
Date:   Thu, 26 Oct 2023 22:35:35 +0200

Free connections on shutdown, not on main finish

Diffstat:
Msrc/fnet.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/fnet.c b/src/fnet.c @@ -743,15 +743,13 @@ FNET_RETURNCODE fnet_main() { usleep(tdiff * 1000); #endif } - } - while(connections) fnet_free(connections); - return FNET_RETURNCODE_OK; } FNET_RETURNCODE fnet_shutdown() { runners = 0; + while(connections) fnet_free(connections); return FNET_RETURNCODE_OK; }