diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-10-28 15:55:43 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-10-28 15:55:43 +0000 |
commit | df3f64517c0a16f2f1ef5a9d7d20ed9a8caddea1 (patch) | |
tree | 99240858971ff1b9f2b24599738d7d1cdc887633 /src/testbed/gnunet-service-testbed_connectionpool.c | |
parent | 758409c1bd75091c0c8f783fd613e297be172634 (diff) | |
download | gnunet-df3f64517c0a16f2f1ef5a9d7d20ed9a8caddea1.tar.gz gnunet-df3f64517c0a16f2f1ef5a9d7d20ed9a8caddea1.zip |
- fixes
Diffstat (limited to 'src/testbed/gnunet-service-testbed_connectionpool.c')
-rw-r--r-- | src/testbed/gnunet-service-testbed_connectionpool.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testbed/gnunet-service-testbed_connectionpool.c b/src/testbed/gnunet-service-testbed_connectionpool.c index ae80c1fd9..a61b55c91 100644 --- a/src/testbed/gnunet-service-testbed_connectionpool.c +++ b/src/testbed/gnunet-service-testbed_connectionpool.c | |||
@@ -885,7 +885,15 @@ GST_connection_pool_get_handle_done (struct GST_ConnectionPool_GetHandle *gh) | |||
885 | gh, | 885 | gh, |
886 | gh->service, entry->index); | 886 | gh->service, entry->index); |
887 | if (!gh->connection_ready_called) | 887 | if (!gh->connection_ready_called) |
888 | { | ||
888 | GNUNET_CONTAINER_DLL_remove (entry->head_waiting, entry->tail_waiting, gh); | 889 | GNUNET_CONTAINER_DLL_remove (entry->head_waiting, entry->tail_waiting, gh); |
890 | if ((NULL == entry->head_waiting) | ||
891 | && (GNUNET_SCHEDULER_NO_TASK != entry->notify_task)) | ||
892 | { | ||
893 | GNUNET_SCHEDULER_cancel (entry->notify_task); | ||
894 | entry->notify_task = GNUNET_SCHEDULER_NO_TASK; | ||
895 | } | ||
896 | } | ||
889 | if (gh->notify_waiting) | 897 | if (gh->notify_waiting) |
890 | { | 898 | { |
891 | GNUNET_CONTAINER_DLL_remove (entry->head_notify, entry->tail_notify, gh); | 899 | GNUNET_CONTAINER_DLL_remove (entry->head_notify, entry->tail_notify, gh); |