- cancel tmt_rdy on peer disconnect
authorBart Polot <bart@net.in.tum.de>
Thu, 27 Sep 2012 12:56:59 +0000 (12:56 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 27 Sep 2012 12:56:59 +0000 (12:56 +0000)
src/mesh/gnunet-service-mesh.c

index 887507cd1b9cd9acd545d606de1b01ace48d70a5..b63fec31fde9174e40a3772874a6cf5f354f7a79 100644 (file)
@@ -7774,6 +7774,11 @@ core_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
       queue_destroy(q, GNUNET_YES);
       q = n;
   }
+  if (NULL != pi->core_transmit)
+  {
+    GNUNET_CORE_notify_transmit_ready_cancel(pi->core_transmit);
+    pi->core_transmit = NULL;
+  }
   peer_info_remove_path (pi, pi->id, myid);
   if (myid == pi->id)
   {