diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-01 12:51:14 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-01 12:51:14 +0000 |
commit | 4d9b96f0f6c22cc90269137fccf7d04f7296504e (patch) | |
tree | 8f33504ddb23e10ba7fbf8d6a83766e467e81686 /src/testbed/gnunet-service-testbed_cache.c | |
parent | 173616fa2120be705164536d8bd391f6588da11b (diff) | |
download | gnunet-4d9b96f0f6c22cc90269137fccf7d04f7296504e.tar.gz gnunet-4d9b96f0f6c22cc90269137fccf7d04f7296504e.zip |
- fixes
Diffstat (limited to 'src/testbed/gnunet-service-testbed_cache.c')
-rw-r--r-- | src/testbed/gnunet-service-testbed_cache.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/testbed/gnunet-service-testbed_cache.c b/src/testbed/gnunet-service-testbed_cache.c index f91e8c9d9..c75ae7dc4 100644 --- a/src/testbed/gnunet-service-testbed_cache.c +++ b/src/testbed/gnunet-service-testbed_cache.c | |||
@@ -531,10 +531,11 @@ opstart_get_handle_transport (void *cls) | |||
531 | GNUNET_break (0); | 531 | GNUNET_break (0); |
532 | return; | 532 | return; |
533 | } | 533 | } |
534 | //GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == entry->notify_task); | ||
535 | if (0 == entry->demand) | 534 | if (0 == entry->demand) |
536 | return; | 535 | return; |
537 | if (GNUNET_NO == entry->cgh_qhead->notify_called) | 536 | if (GNUNET_SCHEDULER_NO_TASK != entry->notify_task) |
537 | return; | ||
538 | if (NULL != search_suitable_cgh (entry, entry->cgh_qhead)) | ||
538 | entry->notify_task = GNUNET_SCHEDULER_add_now (&call_cgh_cb, entry); | 539 | entry->notify_task = GNUNET_SCHEDULER_add_now (&call_cgh_cb, entry); |
539 | } | 540 | } |
540 | 541 | ||
@@ -588,8 +589,10 @@ core_startup_cb (void *cls, | |||
588 | memcpy (entry->peer_identity, my_identity, | 589 | memcpy (entry->peer_identity, my_identity, |
589 | sizeof (struct GNUNET_PeerIdentity)); | 590 | sizeof (struct GNUNET_PeerIdentity)); |
590 | if (0 == entry->demand) | 591 | if (0 == entry->demand) |
592 | return; | ||
593 | if (GNUNET_SCHEDULER_NO_TASK != entry->notify_task) | ||
591 | return; | 594 | return; |
592 | if (GNUNET_NO == entry->cgh_qhead->notify_called) | 595 | if (NULL != search_suitable_cgh (entry, entry->cgh_qhead)) |
593 | entry->notify_task = GNUNET_SCHEDULER_add_now (&call_cgh_cb, entry); | 596 | entry->notify_task = GNUNET_SCHEDULER_add_now (&call_cgh_cb, entry); |
594 | } | 597 | } |
595 | 598 | ||