{
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)
{
/**
- * 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
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);
}
GNUNET_GETOPT_OPTION_END
};
+ result = GNUNET_OK;
ret =
GNUNET_PROGRAM_run ((sizeof (argv2) / sizeof (char *)) - 1, argv2,
"test-mesh-local", "nohelp", options, &run, NULL);