scheduler
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 20 Apr 2011 08:33:44 +0000 (08:33 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 20 Apr 2011 08:33:44 +0000 (08:33 +0000)
src/dht/test_dht_multipeer.c
src/vpn/gnunet-daemon-exit.c

index 593e965278b927d0a294324d881952b7f55e9e90..d05901a2ad03495a8c7256ac3c47bb43bba7d35e 100644 (file)
@@ -364,7 +364,7 @@ get_stop_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
   memset(original_data, test_get->uid, sizeof(original_data));
   GNUNET_CRYPTO_hash(original_data, TEST_DATA_SIZE, &search_key);
 
-  if (tc->reason == GNUNET_SCHEDULER_REASON_TIMEOUT)
+  if ( (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT) != 0)
     {
       gets_failed++;
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Get from peer %s for key %s failed!\n", test_get->daemon->shortname, GNUNET_h2s(&search_key));
index be9d0d053b3aa0d7f4dcc8bc21a841ff18c9df03..368a891ae66bccc711fef1fd2cdd2f5b0bcd5b39 100644 (file)
@@ -176,7 +176,7 @@ cleanup(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) {
 
 static void
 collect_connections(void* cls, const struct GNUNET_SCHEDULER_TaskContext* t) {
-    if (GNUNET_SCHEDULER_REASON_SHUTDOWN == t->reason)
+         if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
       return;