-unnecessary code elimination
authorChristian Grothoff <christian@grothoff.org>
Fri, 1 Jun 2012 20:19:45 +0000 (20:19 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 1 Jun 2012 20:19:45 +0000 (20:19 +0000)
src/util/server.c

index b98e7fc6727c9992322839b8131a1fb82687aad2..d639f65b5eb5b5ca3b261a02a65470012981801d 100644 (file)
@@ -1360,16 +1360,6 @@ GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client)
     GNUNET_CONTAINER_DLL_remove (server->clients_head,
                                 server->clients_tail,
                                 client);
-    if (GNUNET_SCHEDULER_NO_TASK != client->restart_task)
-    {
-      GNUNET_SCHEDULER_cancel (client->restart_task);
-      client->restart_task = GNUNET_SCHEDULER_NO_TASK;
-    }
-    if (GNUNET_SCHEDULER_NO_TASK != client->warn_task)
-    {
-      GNUNET_SCHEDULER_cancel (client->warn_task);
-      client->warn_task = GNUNET_SCHEDULER_NO_TASK;
-    }
     if (NULL != server->mst_destroy)
       server->mst_destroy (server->mst_cls, client->mst);
     else