From: Sree Harsha Totakura Date: Wed, 30 Jan 2013 13:34:47 +0000 (+0000) Subject: - fix X-Git-Tag: initial-import-from-subversion-38251~10060 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c58e7239c70925b7045d109fa1c7eaf8e2659604;p=oweals%2Fgnunet.git - fix --- diff --git a/src/testbed/gnunet-service-testbed_hc.c b/src/testbed/gnunet-service-testbed_hc.c index 7ca276589..ecc2e5edc 100644 --- a/src/testbed/gnunet-service-testbed_hc.c +++ b/src/testbed/gnunet-service-testbed_hc.c @@ -445,12 +445,14 @@ cache_get_handle (unsigned int peer_id, ctxt->cgh = cgh; GNUNET_CONTAINER_DLL_insert_tail (entry->nctxt_qhead, entry->nctxt_qtail, ctxt); } - if ((NULL != entry->transport_handle) || (NULL != entry->transport_op)) + if ((NULL != entry->transport_handle) + && (GNUNET_SCHEDULER_NO_TASK == entry->notify_task)) { - if (GNUNET_SCHEDULER_NO_TASK == entry->notify_task) - entry->notify_task = GNUNET_SCHEDULER_add_now (&call_cgh_cb, entry); + entry->notify_task = GNUNET_SCHEDULER_add_now (&call_cgh_cb, entry); return cgh; } + if (NULL != entry->transport_op) + return cgh; switch (cgh->type) { case CGT_TRANSPORT_HANDLE: