cleanup
authorChristian Grothoff <christian@grothoff.org>
Wed, 17 Feb 2010 14:00:00 +0000 (14:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 17 Feb 2010 14:00:00 +0000 (14:00 +0000)
src/util/server_nc.c

index 05a4913a88dfcfa96a660bd19fac437e7bc810f4..61775c6a1df5f7fbeaa3cbeb72e333f826303dc7 100644 (file)
@@ -172,6 +172,11 @@ handle_client_disconnect (void *cls,
       GNUNET_free (pml);
     }
   GNUNET_SERVER_client_drop (client);
+  if (pos->th != NULL)
+    {
+      GNUNET_CONNECTION_notify_transmit_ready_cancel (pos->th);
+      pos->th = NULL;
+    }
   GNUNET_free (pos);
 }