[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17158 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17158 - gnunet/src/dht |
Date: |
Tue, 4 Oct 2011 11:12:12 +0200 |
Author: grothoff
Date: 2011-10-04 11:12:12 +0200 (Tue, 04 Oct 2011)
New Revision: 17158
Modified:
gnunet/src/dht/test_dht_multipeer.c
Log:
factor out stop into new task (in preparation)
Modified: gnunet/src/dht/test_dht_multipeer.c
===================================================================
--- gnunet/src/dht/test_dht_multipeer.c 2011-10-04 09:11:05 UTC (rev 17157)
+++ gnunet/src/dht/test_dht_multipeer.c 2011-10-04 09:12:12 UTC (rev 17158)
@@ -228,7 +228,14 @@
}
}
+static void
+do_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+{
+ GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
+ pg = NULL;
+}
+
/**
* Function scheduled to be run on the successful completion of this
* testcase.
@@ -265,10 +272,8 @@
test_get);
GNUNET_free (test_get);
}
-
- ok = 0;
- GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
- pg = NULL;
+ ok = 0;
+ GNUNET_SCHEDULER_add_now (&do_stop, NULL);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17158 - gnunet/src/dht,
gnunet <=