- unregister from client on destroy
authorBart Polot <bart@net.in.tum.de>
Thu, 3 Sep 2015 18:04:07 +0000 (18:04 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 3 Sep 2015 18:04:07 +0000 (18:04 +0000)
src/cadet/gnunet-service-cadet_local.c

index 506ae5b1486e47602777ae6829c86206bc8a9372..ff8367a3c287179a71e447bac1dbfc63e6db4195 100644 (file)
@@ -226,6 +226,7 @@ client_destroy (struct CadetClient *c)
 
   GNUNET_CONTAINER_DLL_remove (clients_head, clients_tail, c);
   GNUNET_STATISTICS_update (stats, "# clients", -1, GNUNET_NO);
+  GNUNET_SERVER_client_set_user_context (c->handle, NULL);
   GNUNET_free (c);
 }
 
@@ -304,7 +305,7 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
   }
   else
   {
-    LOG (GNUNET_ERROR_TYPE_WARNING, " disconnecting client's context NULL\n");
+    LOG (GNUNET_ERROR_TYPE_DEBUG, " disconnecting client's context NULL\n");
   }
   return;
 }