trying to fix assertion failure at :496
authorChristian Grothoff <christian@grothoff.org>
Thu, 20 Oct 2011 13:14:42 +0000 (13:14 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 20 Oct 2011 13:14:42 +0000 (13:14 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 6e6d0982bd2eaa7d2c60bbbff63db225e5baacbe..23ff82f91ca9f7c4c4b503f9474dbc5c62b1936b 100644 (file)
@@ -1186,6 +1186,9 @@ GST_neighbours_force_disconnect (const struct GNUNET_PeerIdentity *target)
     GNUNET_STATISTICS_update (GST_stats,
                              gettext_noop ("# peers disconnected due to external request"), 1,
                              GNUNET_NO);
+    n = lookup_neighbour (target);
+    if (NULL == n)
+      return;                     /* gone already */
   }
   disconnect_neighbour (n);
 }