[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11314 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11314 - gnunet/src/util |
Date: |
Tue, 11 May 2010 15:51:29 +0200 |
Author: grothoff
Date: 2010-05-11 15:51:29 +0200 (Tue, 11 May 2010)
New Revision: 11314
Modified:
gnunet/src/util/test_service.c
Log:
fix
Modified: gnunet/src/util/test_service.c
===================================================================
--- gnunet/src/util/test_service.c 2010-05-11 13:44:09 UTC (rev 11313)
+++ gnunet/src/util/test_service.c 2010-05-11 13:51:29 UTC (rev 11314)
@@ -79,13 +79,24 @@
}
static void
+do_stop (void *cls,
+ const struct GNUNET_SCHEDULER_TaskContext *tc)
+{
+ GNUNET_SERVICE_stop (sctx);
+}
+
+
+static void
recv_cb (void *cls,
struct GNUNET_SERVER_Client *client,
const struct GNUNET_MessageHeader *message)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving client message...\n");
GNUNET_SERVER_receive_done (client, GNUNET_OK);
- GNUNET_SCHEDULER_shutdown (sched);
+ if (sctx != NULL)
+ GNUNET_SCHEDULER_add_now (sched, &do_stop, NULL);
+ else
+ GNUNET_SCHEDULER_shutdown (sched);
ok = 0;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11314 - gnunet/src/util,
gnunet <=