diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-09-03 18:04:07 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-09-03 18:04:07 +0000 |
commit | 86c9cac29e9d0a8353df7baede9a7e21762de63c (patch) | |
tree | d8304b24d854b842a1665f066773d66b16fd0fab /src/cadet | |
parent | d256adae08b8ee0789dea4d8431fbd0441fc85a8 (diff) | |
download | gnunet-86c9cac29e9d0a8353df7baede9a7e21762de63c.tar.gz gnunet-86c9cac29e9d0a8353df7baede9a7e21762de63c.zip |
- unregister from client on destroy
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_local.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
226 | 226 | ||
227 | GNUNET_CONTAINER_DLL_remove (clients_head, clients_tail, c); | 227 | GNUNET_CONTAINER_DLL_remove (clients_head, clients_tail, c); |
228 | GNUNET_STATISTICS_update (stats, "# clients", -1, GNUNET_NO); | 228 | GNUNET_STATISTICS_update (stats, "# clients", -1, GNUNET_NO); |
229 | GNUNET_SERVER_client_set_user_context (c->handle, NULL); | ||
229 | GNUNET_free (c); | 230 | GNUNET_free (c); |
230 | } | 231 | } |
231 | 232 | ||
@@ -304,7 +305,7 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) | |||
304 | } | 305 | } |
305 | else | 306 | else |
306 | { | 307 | { |
307 | LOG (GNUNET_ERROR_TYPE_WARNING, " disconnecting client's context NULL\n"); | 308 | LOG (GNUNET_ERROR_TYPE_DEBUG, " disconnecting client's context NULL\n"); |
308 | } | 309 | } |
309 | return; | 310 | return; |
310 | } | 311 | } |