xtra checks
authorChristian Grothoff <christian@grothoff.org>
Wed, 22 Jun 2011 14:34:28 +0000 (14:34 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 22 Jun 2011 14:34:28 +0000 (14:34 +0000)
src/util/server.c

index 0b894d2a893cc1ca75dd4e0bc8ca699901773aec..5b9361cfcf2aa99b302d8567f0c5ba7b92d80f08 100644 (file)
@@ -849,6 +849,9 @@ process_incoming (void *cls,
                                  client->idle_timeout);
 
   if ( (buf == NULL) && (available == 0)  && (addr == NULL) && (errCode == 0) &&
+       (client->shutdown_now != GNUNET_YES) &&
+       (server != NULL) &&
+       (GNUNET_YES == GNUNET_CONNECTION_check (client->connection)) &&
        (end.abs_value > now.abs_value) )
     {
       /* wait longer, timeout changed (i.e. due to us sending) */