X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fsignal.c;h=24e399d6490ade57b73a94ac9573944e6ce7b3a7;hb=67dfed5461abb34f0f048640af78d47be7ba0c74;hp=d427ae2e9510884b927b02f4005899d2d37ede6d;hpb=9eb6179eb4d2c394c7913eda496c922cb8c5d1a8;p=NeonServV5.git diff --git a/src/signal.c b/src/signal.c index d427ae2..24e399d 100644 --- a/src/signal.c +++ b/src/signal.c @@ -1,4 +1,4 @@ -/* signal.c - NeonServ v5.5 +/* signal.c - NeonServ v5.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -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; } }