-fix shutdown of server
authorChristian Grothoff <christian@grothoff.org>
Thu, 19 Apr 2012 19:36:30 +0000 (19:36 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 19 Apr 2012 19:36:30 +0000 (19:36 +0000)
src/util/server.c

index fc96db80264cabda1757992eea439c47b51e432b..5a2eee28d517e0e1ff7c8c1074621eadc22d93e4 100644 (file)
@@ -1221,6 +1221,8 @@ GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client)
 
   if (client->persist == GNUNET_YES)
     GNUNET_CONNECTION_persist_ (client->connection);
+  if (NULL != client->th.cth)
+    GNUNET_SERVER_notify_transmit_ready_cancel (&client->th);
   GNUNET_CONNECTION_destroy (client->connection);
 
   if (client->server->mst_destroy != NULL)