projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
db5bee9
)
fix
author
Christian Grothoff
<christian@grothoff.org>
Tue, 27 Sep 2011 20:23:01 +0000
(20:23 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 27 Sep 2011 20:23:01 +0000
(20:23 +0000)
src/dht/test_dht_twopeer.c
patch
|
blob
|
history
diff --git
a/src/dht/test_dht_twopeer.c
b/src/dht/test_dht_twopeer.c
index 94abd2929e3e0b4c80b5191e07be3f8552a68709..3331eb0117691a28af68eeb289e35fbfa36270e0 100644
(file)
--- a/
src/dht/test_dht_twopeer.c
+++ b/
src/dht/test_dht_twopeer.c
@@
-126,7
+126,10
@@
end_badly_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
}
if (curr_get_ctx.retry_task != GNUNET_SCHEDULER_NO_TASK)
}
if (curr_get_ctx.retry_task != GNUNET_SCHEDULER_NO_TASK)
+ {
GNUNET_SCHEDULER_cancel (curr_get_ctx.retry_task);
GNUNET_SCHEDULER_cancel (curr_get_ctx.retry_task);
+ curr_get_ctx.retry_task = GNUNET_SCHEDULER_NO_TASK;
+ }
}
}
@@
-139,8
+142,10
@@
end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
"Error: %s\n",
emsg);
if (curr_get_ctx.retry_task != GNUNET_SCHEDULER_NO_TASK)
"Error: %s\n",
emsg);
if (curr_get_ctx.retry_task != GNUNET_SCHEDULER_NO_TASK)
+ {
GNUNET_SCHEDULER_cancel (curr_get_ctx.retry_task);
GNUNET_SCHEDULER_cancel (curr_get_ctx.retry_task);
-
+ curr_get_ctx.retry_task = GNUNET_SCHEDULER_NO_TASK;
+ }
if (curr_get_ctx.get_handle != NULL)
{
GNUNET_DHT_get_stop (curr_get_ctx.get_handle);
if (curr_get_ctx.get_handle != NULL)
{
GNUNET_DHT_get_stop (curr_get_ctx.get_handle);