- add underlay api implementation
[oweals/gnunet.git] / src / mesh / gnunet-service-mesh_connection.c
index 93fe7baf94a22f44dd17fb4cd72ade172051a065..72f7a122c037e930df59c08afcdda6528cfd1e7f 100644 (file)
@@ -1502,7 +1502,6 @@ GMC_handle_broken (void* cls,
   }
 
   fwd = is_fwd (c, id);
-  connection_cancel_queues (c, !fwd);
   if (GMC_is_terminal (c, fwd))
   {
     if (0 < c->pending_messages)
@@ -1514,6 +1513,7 @@ GMC_handle_broken (void* cls,
   {
     GMC_send_prebuilt_message (message, c, fwd, GNUNET_YES, NULL, NULL);
     c->destroy = GNUNET_YES;
+    connection_cancel_queues (c, !fwd);
   }
 
   return GNUNET_OK;
@@ -2221,7 +2221,6 @@ GMC_new (const struct GNUNET_HashCode *cid,
   }
   if (GNUNET_OK != register_neighbors (c))
   {
-    GNUNET_break (0);
     GMC_destroy (c);
     return NULL;
   }