diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-20 08:29:52 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-20 08:29:52 +0000 |
commit | 167c1552f3db95705317f32e21f6cd73ef75c9c6 (patch) | |
tree | f0846b7fc3f043c43f8aeb31ec393e0158f27a0e /src/dht/test_dht_api.c | |
parent | 46aedb2a4c5ada8aa2fff6a4b860b1300ab7303f (diff) | |
download | gnunet-167c1552f3db95705317f32e21f6cd73ef75c9c6.tar.gz gnunet-167c1552f3db95705317f32e21f6cd73ef75c9c6.zip |
timeout
Diffstat (limited to 'src/dht/test_dht_api.c')
-rw-r--r-- | src/dht/test_dht_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c index 49dae1217..5ae53b1f0 100644 --- a/src/dht/test_dht_api.c +++ b/src/dht/test_dht_api.c | |||
@@ -169,7 +169,7 @@ test_find_peer_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
169 | struct PeerContext *peer = cls; | 169 | struct PeerContext *peer = cls; |
170 | 170 | ||
171 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Called test_find_peer_stop!\n"); | 171 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Called test_find_peer_stop!\n"); |
172 | if (tc->reason == GNUNET_SCHEDULER_REASON_TIMEOUT) | 172 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT) != 0) |
173 | { | 173 | { |
174 | GNUNET_break (0); | 174 | GNUNET_break (0); |
175 | GNUNET_SCHEDULER_cancel (die_task); | 175 | GNUNET_SCHEDULER_cancel (die_task); |
@@ -348,7 +348,7 @@ test_get_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
348 | struct PeerContext *peer = cls; | 348 | struct PeerContext *peer = cls; |
349 | 349 | ||
350 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Called test_get_stop!\n"); | 350 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Called test_get_stop!\n"); |
351 | if (tc->reason == GNUNET_SCHEDULER_REASON_TIMEOUT) | 351 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT) != 0) |
352 | { | 352 | { |
353 | GNUNET_break (0); | 353 | GNUNET_break (0); |
354 | GNUNET_SCHEDULER_cancel (die_task); | 354 | GNUNET_SCHEDULER_cancel (die_task); |