fixing #3610
[oweals/gnunet.git] / src / cadet / cadet_api.c
index 058f3fa8726490c5fdb127a1391f4a16610ebf83..57b292f25f8619f7f24a1c6741f016081a4b96e7 100644 (file)
@@ -1440,6 +1440,8 @@ send_packet (struct GNUNET_CADET_Handle *h,
   th->channel = channel;
   memcpy (&th[1], msg, msize);
   add_to_queue (h, th);
+  if (NULL != h->th)
+    return;
   LOG (GNUNET_ERROR_TYPE_DEBUG, "  calling ntfy tmt rdy for %u bytes\n", msize);
   h->th =
       GNUNET_CLIENT_notify_transmit_ready (h->client, msize,