gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24375 - gnunet/src/testbed


From: gnunet
Subject: [GNUnet-SVN] r24375 - gnunet/src/testbed
Date: Wed, 17 Oct 2012 20:08:53 +0200

Author: harsha
Date: 2012-10-17 20:08:53 +0200 (Wed, 17 Oct 2012)
New Revision: 24375

Modified:
   gnunet/src/testbed/gnunet-service-testbed.c
Log:
stop peer before destroying it

Modified: gnunet/src/testbed/gnunet-service-testbed.c
===================================================================
--- gnunet/src/testbed/gnunet-service-testbed.c 2012-10-17 18:01:40 UTC (rev 
24374)
+++ gnunet/src/testbed/gnunet-service-testbed.c 2012-10-17 18:08:53 UTC (rev 
24375)
@@ -58,7 +58,7 @@
 /**
  * Default timeout for operations which may take some time
  */
-#define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30)
+#define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 60)
 
 /**
  * The main context information associated with the client which started us
@@ -2321,6 +2321,11 @@
     GNUNET_SERVER_receive_done (client, GNUNET_OK);
     return;
   }
+  if (GNUNET_YES == peer->details.local.is_running)
+  {
+    GNUNET_TESTING_peer_stop (peer->details.local.peer);
+    peer->details.local.is_running = GNUNET_NO;
+  }
   GNUNET_TESTING_peer_destroy (peer->details.local.peer);
   GNUNET_CONFIGURATION_destroy (peer->details.local.cfg);
   peer_list_remove (peer);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]