gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r36535 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r36535 - gnunet/src/cadet
Date: Sun, 18 Oct 2015 16:05:00 +0200

Author: grothoff
Date: 2015-10-18 16:04:59 +0200 (Sun, 18 Oct 2015)
New Revision: 36535

Modified:
   gnunet/src/cadet/gnunet-service-cadet_peer.c
Log:
-stop active offer before starting another one

Modified: gnunet/src/cadet/gnunet-service-cadet_peer.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_peer.c        2015-10-18 13:59:59 UTC 
(rev 36534)
+++ gnunet/src/cadet/gnunet-service-cadet_peer.c        2015-10-18 14:04:59 UTC 
(rev 36535)
@@ -2574,6 +2574,11 @@
     return;
 
   mh = GNUNET_HELLO_get_header (hello);
+  if (NULL != peer->hello_offer)
+  {
+    GNUNET_TRANSPORT_offer_hello_cancel (peer->hello_offer);
+    peer->hello_offer = NULL;
+  }
   peer->hello_offer = GNUNET_TRANSPORT_offer_hello (transport_handle,
                                                     mh,
                                                     &hello_offer_done,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]