aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-01-17 11:57:20 +0000
committerBart Polot <bart@net.in.tum.de>2014-01-17 11:57:20 +0000
commitbb9e3a0bf156a0fab99d36ee62286cb1b7c85c36 (patch)
tree77e4f031cbcf352c0e03b4014472638015e8be1c /src/mesh/gnunet-service-mesh_tunnel.c
parent2c69d7d945756a8bdbe493df22b95426715684e1 (diff)
downloadgnunet-bb9e3a0bf156a0fab99d36ee62286cb1b7c85c36.tar.gz
gnunet-bb9e3a0bf156a0fab99d36ee62286cb1b7c85c36.zip
- add warning if check fails
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index afb739ee5..b51fc7f29 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -2020,8 +2020,14 @@ GMT_destroy_empty (struct MeshTunnel3 *t)
2020{ 2020{
2021 if (GNUNET_SCHEDULER_NO_TASK != t->destroy_task) 2021 if (GNUNET_SCHEDULER_NO_TASK != t->destroy_task)
2022 { 2022 {
2023 LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s is already scheduled for destruction\n", 2023 LOG (GNUNET_ERROR_TYPE_DEBUG,
2024 "Tunnel %s is already scheduled for destruction\n",
2024 GMT_2s (t)); 2025 GMT_2s (t));
2026 GNUNET_break (0);
2027 /* should never happen, tunnel can only become empty once, and the
2028 * task identifier should be NO_TASK (cleaned when the tunnel was created
2029 * or became un-empty)
2030 */
2025 return; 2031 return;
2026 } 2032 }
2027 2033