[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r19204 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r19204 - gnunet/src/mesh |
Date: |
Tue, 17 Jan 2012 17:13:50 +0100 |
Author: bartpolot
Date: 2012-01-17 17:13:50 +0100 (Tue, 17 Jan 2012)
New Revision: 19204
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
Log:
Temporl workaround for #2070
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2012-01-17 16:07:16 UTC (rev
19203)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2012-01-17 16:13:50 UTC (rev
19204)
@@ -723,17 +723,17 @@
static void
client_allow_send (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
- struct MeshDataDescriptor *info = cls;
+ struct MeshClient *c = cls;
if (GNUNET_SCHEDULER_REASON_SHUTDOWN == tc->reason)
return;
-#if MESH_DEBUG
+#if 0
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"MESH: CLIENT ALLOW SEND DESPITE %u COPIES PENDING\n",
(info->copies != NULL) ? *(info->copies) : 0);
#endif
- *(info->timeout_task) = GNUNET_SCHEDULER_NO_TASK;
- GNUNET_SERVER_receive_done (info->client, GNUNET_OK);
+// *(info->timeout_task) = GNUNET_SCHEDULER_NO_TASK;
+ GNUNET_SERVER_receive_done (c, GNUNET_OK);
}
@@ -1994,6 +1994,9 @@
/**
* Send a multicast packet to a neighbor.
+ *
+ * @param cls Closure (Info about the multicast packet)
+ * @param neighbor_id Short ID of the neighbor to send the packet to.
*/
static void
tunnel_send_multicast_iterator (void *cls, GNUNET_PEER_Id neighbor_id)
@@ -2085,10 +2088,7 @@
{
GNUNET_free (mdata->data);
GNUNET_free (mdata->reference_counter);
- if (NULL != mdata->task)
- {
- GNUNET_free (mdata->task);
- }
+ GNUNET_free_non_null (mdata->task);
}
GNUNET_free (mdata);
#if MESH_DEBUG
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r19204 - gnunet/src/mesh,
gnunet <=