diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-12 10:42:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-12 10:42:30 +0000 |
commit | 554122b202a2be037b4289e5e2345d58e6dbecd3 (patch) | |
tree | 70b212cdce1758a7031f823c2c244bfa813b1fd2 /src/statistics | |
parent | d7eb5e52b5fba7d31a39ac03aa19ece127f7662e (diff) | |
download | gnunet-554122b202a2be037b4289e5e2345d58e6dbecd3.tar.gz gnunet-554122b202a2be037b4289e5e2345d58e6dbecd3.zip |
-keep and drop are not needed here as we watch for disconnects
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/gnunet-service-statistics.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index 6da14ed17..77939d7b4 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c | |||
@@ -411,7 +411,6 @@ make_client_entry (struct GNUNET_SERVER_Client *client) | |||
411 | } | 411 | } |
412 | ce = GNUNET_malloc (sizeof (struct ClientEntry)); | 412 | ce = GNUNET_malloc (sizeof (struct ClientEntry)); |
413 | ce->client = client; | 413 | ce->client = client; |
414 | GNUNET_SERVER_client_keep (client); | ||
415 | GNUNET_CONTAINER_DLL_insert (client_head, client_tail, ce); | 414 | GNUNET_CONTAINER_DLL_insert (client_head, client_tail, ce); |
416 | GNUNET_SERVER_notification_context_add (nc, client); | 415 | GNUNET_SERVER_notification_context_add (nc, client); |
417 | return ce; | 416 | return ce; |
@@ -706,7 +705,6 @@ handle_watch (void *cls, struct GNUNET_SERVER_Client *client, | |||
706 | we = GNUNET_malloc (sizeof (struct WatchEntry)); | 705 | we = GNUNET_malloc (sizeof (struct WatchEntry)); |
707 | we->client = client; | 706 | we->client = client; |
708 | we->last_value_set = GNUNET_NO; | 707 | we->last_value_set = GNUNET_NO; |
709 | GNUNET_SERVER_client_keep (client); | ||
710 | we->wid = ce->max_wid++; | 708 | we->wid = ce->max_wid++; |
711 | GNUNET_CONTAINER_DLL_insert (pos->we_head, pos->we_tail, we); | 709 | GNUNET_CONTAINER_DLL_insert (pos->we_head, pos->we_tail, we); |
712 | if (pos->value != 0) | 710 | if (pos->value != 0) |
@@ -735,7 +733,6 @@ do_shutdown () | |||
735 | start = se->next; | 733 | start = se->next; |
736 | while (NULL != (we = se->we_head)) | 734 | while (NULL != (we = se->we_head)) |
737 | { | 735 | { |
738 | GNUNET_SERVER_client_drop (we->client); | ||
739 | GNUNET_CONTAINER_DLL_remove (se->we_head, se->we_tail, we); | 736 | GNUNET_CONTAINER_DLL_remove (se->we_head, se->we_tail, we); |
740 | GNUNET_free (we); | 737 | GNUNET_free (we); |
741 | } | 738 | } |
@@ -779,7 +776,6 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) | |||
779 | { | 776 | { |
780 | if (ce->client == client) | 777 | if (ce->client == client) |
781 | { | 778 | { |
782 | GNUNET_SERVER_client_drop (ce->client); | ||
783 | GNUNET_CONTAINER_DLL_remove (client_head, client_tail, ce); | 779 | GNUNET_CONTAINER_DLL_remove (client_head, client_tail, ce); |
784 | GNUNET_free (ce); | 780 | GNUNET_free (ce); |
785 | break; | 781 | break; |
@@ -795,7 +791,6 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) | |||
795 | wen = we->next; | 791 | wen = we->next; |
796 | if (we->client != client) | 792 | if (we->client != client) |
797 | continue; | 793 | continue; |
798 | GNUNET_SERVER_client_drop (we->client); | ||
799 | GNUNET_CONTAINER_DLL_remove (se->we_head, se->we_tail, we); | 794 | GNUNET_CONTAINER_DLL_remove (se->we_head, se->we_tail, we); |
800 | GNUNET_free (we); | 795 | GNUNET_free (we); |
801 | } | 796 | } |