From: Bart Polot Date: Thu, 3 Sep 2015 18:04:07 +0000 (+0000) Subject: - unregister from client on destroy X-Git-Tag: initial-import-from-subversion-38251~1444 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=86c9cac29e9d0a8353df7baede9a7e21762de63c;p=oweals%2Fgnunet.git - unregister from client on destroy --- diff --git a/src/cadet/gnunet-service-cadet_local.c b/src/cadet/gnunet-service-cadet_local.c index 506ae5b14..ff8367a3c 100644 --- a/src/cadet/gnunet-service-cadet_local.c +++ b/src/cadet/gnunet-service-cadet_local.c @@ -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; }