gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r19888 - gnunet/src/mesh
Date: Tue, 21 Feb 2012 12:25:26 +0100

Author: bartpolot
Date: 2012-02-21 12:25:26 +0100 (Tue, 21 Feb 2012)
New Revision: 19888

Modified:
   gnunet/src/mesh/test_mesh_local_1.c
Log:
- Destroy tunnel to avoid api complaints, initialize return value explicitly

Modified: gnunet/src/mesh/test_mesh_local_1.c
===================================================================
--- gnunet/src/mesh/test_mesh_local_1.c 2012-02-21 11:13:11 UTC (rev 19887)
+++ gnunet/src/mesh/test_mesh_local_1.c 2012-02-21 11:25:26 UTC (rev 19888)
@@ -55,6 +55,10 @@
   {
     GNUNET_SCHEDULER_cancel (abort_task);
   }
+  if (NULL != t)
+  {
+    GNUNET_MESH_tunnel_destroy(t);
+  }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: D1\n");
   if (NULL != mesh_peer_1)
   {
@@ -173,7 +177,7 @@
 
 
 /**
- * Method called whenever a peer has disconnected from the tunnel.
+ * Method called whenever a peer has connected to the tunnel.
  *
  * @param cls closure
  * @param peer peer identity the tunnel stopped working with
@@ -222,6 +226,7 @@
 static void
 do_find (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: CONNECT BY TYPE\n");
   GNUNET_MESH_peer_request_connect_by_type (t, 1);
 }
 
@@ -319,6 +324,7 @@
     GNUNET_GETOPT_OPTION_END
   };
 
+  result = GNUNET_OK;
   ret =
       GNUNET_PROGRAM_run ((sizeof (argv2) / sizeof (char *)) - 1, argv2,
                           "test-mesh-local", "nohelp", options, &run, NULL);




reply via email to

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