gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r32666 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32666 - gnunet/src/mesh
Date: Mon, 17 Mar 2014 12:02:40 +0100

Author: bartpolot
Date: 2014-03-17 12:02:40 +0100 (Mon, 17 Mar 2014)
New Revision: 32666

Modified:
   gnunet/src/mesh/gnunet-mesh-profiler.c
Log:
- fix operation handling

Modified: gnunet/src/mesh/gnunet-mesh-profiler.c
===================================================================
--- gnunet/src/mesh/gnunet-mesh-profiler.c      2014-03-17 11:02:38 UTC (rev 
32665)
+++ gnunet/src/mesh/gnunet-mesh-profiler.c      2014-03-17 11:02:40 UTC (rev 
32666)
@@ -247,7 +247,8 @@
   disconnect_task = GNUNET_SCHEDULER_NO_TASK;
   for (i = 0; i < TOTAL_PEERS; i++)
   {
-    GNUNET_TESTBED_operation_done (peers[i].op);
+    if (NULL != peers[i].op)
+      GNUNET_TESTBED_operation_done (peers[i].op);
 
     if (peers[i].up != GNUNET_YES)
       continue;
@@ -675,7 +676,7 @@
   struct MeshPeer *peer = &peers[n];
 
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-              "Incoming channel %p disconnected at peer %ld\n", channel, n);
+              "Channel %p disconnected at peer %ld\n", channel, n);
   if (peer->ch == channel)
     peer->ch = NULL;
 }
@@ -768,6 +769,10 @@
   GNUNET_break (GNUNET_OK ==
                 GNUNET_CONTAINER_multipeermap_put (ids, &peers[n].id, 
&peers[n],
                                                    
GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
+
+  GNUNET_TESTBED_operation_done (peers[n].op);
+  peers[n].op = NULL;
+
   p_ids++;
   if (p_ids < TOTAL_PEERS)
     return;




reply via email to

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