diff options
Diffstat (limited to 'src/testbed')
-rw-r--r-- | src/testbed/gnunet-service-testbed_cache.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testbed/gnunet-service-testbed_cache.c b/src/testbed/gnunet-service-testbed_cache.c index 4d86bc41a..9fc97c836 100644 --- a/src/testbed/gnunet-service-testbed_cache.c +++ b/src/testbed/gnunet-service-testbed_cache.c | |||
@@ -783,7 +783,10 @@ cache_get_handle (unsigned int peer_id, struct GSTCacheGetHandle *cgh, | |||
783 | if (NULL != handle) | 783 | if (NULL != handle) |
784 | { | 784 | { |
785 | if (GNUNET_SCHEDULER_NO_TASK == entry->notify_task) | 785 | if (GNUNET_SCHEDULER_NO_TASK == entry->notify_task) |
786 | entry->notify_task = GNUNET_SCHEDULER_add_now (&call_cgh_cb, entry); | 786 | { |
787 | if (NULL != search_suitable_cgh (entry, entry->cgh->qhead)) | ||
788 | entry->notify_task = GNUNET_SCHEDULER_add_now (&call_cgh_cb, entry); | ||
789 | } | ||
787 | return cgh; | 790 | return cgh; |
788 | } | 791 | } |
789 | switch (cgh->type) | 792 | switch (cgh->type) |