diff options
Diffstat (limited to 'src/listen.c')
-rw-r--r-- | src/listen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/listen.c b/src/listen.c index a951595fc..bea0be9bb 100644 --- a/src/listen.c +++ b/src/listen.c @@ -213,7 +213,10 @@ void closeAllListenSockets() { DEBUG("closing listen socket %i\n", i); while(close(listenSockets[i]) < 0 && errno==EINTR); } + freeAllListenSockets(); +} +void freeAllListenSockets() { numberOfListenSockets = 0; free(listenSockets); listenSockets = NULL; |