aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-01-23 17:36:49 +0000
committerBart Polot <bart@net.in.tum.de>2012-01-23 17:36:49 +0000
commit5637b075a3a5681ee73d034e233ba53347f84c1f (patch)
tree4979aae35140095a42b3307a33fdba04bf6ea460 /src/mesh
parent1d70588544ceb846af6926f508bc639613a91c2b (diff)
downloadgnunet-5637b075a3a5681ee73d034e233ba53347f84c1f.tar.gz
gnunet-5637b075a3a5681ee73d034e233ba53347f84c1f.zip
- Added debug info
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_api.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index 279fb1fe7..2c6d90675 100644
--- a/src/mesh/mesh_api.c
+++ b/src/mesh/mesh_api.c
@@ -1293,7 +1293,15 @@ GNUNET_MESH_disconnect (struct GNUNET_MESH_Handle *handle)
1293 GNUNET_break (UINT32_MAX == th->priority); 1293 GNUNET_break (UINT32_MAX == th->priority);
1294 GNUNET_break (NULL == th->notify); 1294 GNUNET_break (NULL == th->notify);
1295 msg = (struct GNUNET_MessageHeader *) &th[1]; 1295 msg = (struct GNUNET_MessageHeader *) &th[1];
1296 GNUNET_break (GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT == ntohs(msg->type)); 1296 if (GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT != ntohs(msg->type))
1297 {
1298 GNUNET_break (0);
1299#if MESH_API_DEBUG
1300 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "mesh: expected %u, got %u\n",
1301 GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT, ntohs(msg->type));
1302#endif
1303 }
1304
1297 GNUNET_CONTAINER_DLL_remove (handle->th_head, handle->th_tail, th); 1305 GNUNET_CONTAINER_DLL_remove (handle->th_head, handle->th_tail, th);
1298 GNUNET_free (th); 1306 GNUNET_free (th);
1299 } 1307 }