X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fsignal.c;h=175f61150db18ba33863ba979eef4d3953be9eef;hp=d427ae2e9510884b927b02f4005899d2d37ede6d;hb=291f15058a67b95bdfe6f6861cdfcb8ffd626149;hpb=9eb6179eb4d2c394c7913eda496c922cb8c5d1a8 diff --git a/src/signal.c b/src/signal.c index d427ae2..175f611 100644 --- a/src/signal.c +++ b/src/signal.c @@ -87,7 +87,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)) { iohandler_close(bot->iofd); - bot->flags &= SOCKET_FLAG_CONNECTED; + bot->flags &= ~(SOCKET_FLAG_CONNECTED | SOCKET_FLAG_READY); bot->iofd = NULL; } }