From: Bart Polot Date: Fri, 17 Jan 2014 11:57:20 +0000 (+0000) Subject: - add warning if check fails X-Git-Tag: initial-import-from-subversion-38251~5006 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bb9e3a0bf156a0fab99d36ee62286cb1b7c85c36;p=oweals%2Fgnunet.git - add warning if check fails --- 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) { if (GNUNET_SCHEDULER_NO_TASK != t->destroy_task) { - LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s is already scheduled for destruction\n", + LOG (GNUNET_ERROR_TYPE_DEBUG, + "Tunnel %s is already scheduled for destruction\n", GMT_2s (t)); + GNUNET_break (0); + /* should never happen, tunnel can only become empty once, and the + * task identifier should be NO_TASK (cleaned when the tunnel was created + * or became un-empty) + */ return; }