X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fsignal.c;h=9acfd2cdbde71374994c438a4f0b32be81b4819f;hp=37f66f38671d98cf9f9a911963e7bb96ad26e905;hb=cee5525a5937307077e367dfa0f9df85f7f0b817;hpb=b29e54d8e3078941d4d0be587c5c39059da6bb42 diff --git a/src/signal.c b/src/signal.c index 37f66f3..9acfd2c 100644 --- a/src/signal.c +++ b/src/signal.c @@ -86,7 +86,7 @@ static void sigcrash(int signum) { for(bot = getBots(SOCKET_FLAG_READY, NULL); bot; bot = getBots(SOCKET_FLAG_READY, bot)) { if((bot->flags & SOCKET_FLAG_CONNECTED)) { close(bot->sock); - bot->flags &= SOCKET_FLAG_CONNECTED; + bot->flags &= ~(SOCKET_FLAG_CONNECTED | SOCKET_FLAG_READY); } } putlog(LOGLEVEL_INFO, "hard shutdown...\n");