Check that you are not present in trail twice
[oweals/gnunet.git] / src / transport / gnunet-service-transport_manipulation.c
index 06171d306ae98460752a7d27b52de846e55dfa2c..bfd2594a8e131376cfde621b12f2f09e2c9ab564 100644 (file)
@@ -521,11 +521,9 @@ GST_manipulation_manipulate_metrics(const struct GNUNET_PeerIdentity *peer,
  * manipulation delays for next send.
  *
  * @param cls the closure for transport
- * @param peer the peer the message was received from
+ * @param address the address and the peer the message was received from
  * @param message the message received
  * @param session the session the message was received on
- * @param sender_address the sender address
- * @param sender_address_len the length of the sender address
  * @return manipulated delay for next receive
  */
 struct GNUNET_TIME_Relative
@@ -698,6 +696,7 @@ GST_manipulation_peer_disconnect(const struct GNUNET_PeerIdentity *peer)
       if (GNUNET_SCHEDULER_NO_TASK != generic_send_delay_task)
         {
           GNUNET_SCHEDULER_cancel(generic_send_delay_task);
+          generic_send_delay_task = GNUNET_SCHEDULER_NO_TASK;
           if (NULL != generic_dqe_head)
             generic_send_delay_task = GNUNET_SCHEDULER_add_delayed(
                 GNUNET_TIME_absolute_get_remaining(generic_dqe_head->sent_at),