gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r31943 - gnunet/src/mesh
Date: Fri, 17 Jan 2014 05:12:59 +0100

Author: LRN
Date: 2014-01-17 05:12:59 +0100 (Fri, 17 Jan 2014)
New Revision: 31943

Modified:
   gnunet/src/mesh/gnunet-service-mesh_tunnel.c
Log:
Check that we're not scheduling destroy twice

Modified: gnunet/src/mesh/gnunet-service-mesh_tunnel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2014-01-17 04:12:56 UTC 
(rev 31942)
+++ gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2014-01-17 04:12:59 UTC 
(rev 31943)
@@ -2018,6 +2018,13 @@
 void
 GMT_destroy_empty (struct MeshTunnel3 *t)
 {
+  if (GNUNET_SCHEDULER_NO_TASK != t->destroy_task)
+  {
+    LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s is already scheduled for 
destruction\n",
+         GMT_2s (t));
+    return;
+  }
+
   LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s empty: destroying scheduled\n",
        GMT_2s (t));
 




reply via email to

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