diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-08-07 12:23:05 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-08-07 12:23:05 +0000 |
commit | a0ebfc6a72f42eab9ce0859e0f2e565424cf2118 (patch) | |
tree | 2a8fa412954c0ba0d7fb68536e5e0fbe4164c9d1 /src/testbed/testbed_api_operations.c | |
parent | 844aabc796c0d1b955eb8a2229ea46ca8e78a92e (diff) | |
download | gnunet-a0ebfc6a72f42eab9ce0859e0f2e565424cf2118.tar.gz gnunet-a0ebfc6a72f42eab9ce0859e0f2e565424cf2118.zip |
hacking overlay connect
Diffstat (limited to 'src/testbed/testbed_api_operations.c')
-rw-r--r-- | src/testbed/testbed_api_operations.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/testbed/testbed_api_operations.c b/src/testbed/testbed_api_operations.c index a3e3c30b1..2bd82949e 100644 --- a/src/testbed/testbed_api_operations.c +++ b/src/testbed/testbed_api_operations.c | |||
@@ -163,7 +163,9 @@ static void | |||
163 | check_readiness (struct GNUNET_TESTBED_Operation *op) | 163 | check_readiness (struct GNUNET_TESTBED_Operation *op) |
164 | { | 164 | { |
165 | unsigned int i; | 165 | unsigned int i; |
166 | 166 | ||
167 | if (GNUNET_SCHEDULER_NO_TASK != op->start_task_id) | ||
168 | return; | ||
167 | for (i = 0; i < op->nqueues; i++) | 169 | for (i = 0; i < op->nqueues; i++) |
168 | { | 170 | { |
169 | if (0 == op->queues[i]->active) | 171 | if (0 == op->queues[i]->active) |
@@ -173,8 +175,7 @@ check_readiness (struct GNUNET_TESTBED_Operation *op) | |||
173 | { | 175 | { |
174 | op->queues[i]->active--; | 176 | op->queues[i]->active--; |
175 | } | 177 | } |
176 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == op->start_task_id); | 178 | op->start_task_id = GNUNET_SCHEDULER_add_now (&call_start, op); |
177 | op->start_task_id = GNUNET_SCHEDULER_add_now (&call_start, op); | ||
178 | } | 179 | } |
179 | 180 | ||
180 | 181 | ||
@@ -197,7 +198,8 @@ GNUNET_TESTBED_operation_create_ (void *cls, | |||
197 | op->start = start; | 198 | op->start = start; |
198 | op->release = release; | 199 | op->release = release; |
199 | op->cb_cls = cls; | 200 | op->cb_cls = cls; |
200 | return op; | 201 | op->start_task_id = GNUNET_SCHEDULER_NO_TASK; |
202 | return op; | ||
201 | } | 203 | } |
202 | 204 | ||
203 | 205 | ||