gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r37904 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r37904 - gnunet/src/fs
Date: Wed, 7 Sep 2016 17:32:48 +0200

Author: amatus
Date: 2016-09-07 17:32:48 +0200 (Wed, 07 Sep 2016)
New Revision: 37904

Modified:
   gnunet/src/fs/gnunet-service-fs_push.c
Log:
Only one transmit_content can go at a time


Modified: gnunet/src/fs/gnunet-service-fs_push.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_push.c      2016-09-07 11:17:32 UTC (rev 
37903)
+++ gnunet/src/fs/gnunet-service-fs_push.c      2016-09-07 15:32:48 UTC (rev 
37904)
@@ -518,9 +518,11 @@
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                "Preparing to push best content to peer %s\n",
                GNUNET_i2s (GSF_connected_peer_get_identity2_(pos->peer)));
-    if (GNUNET_YES == transmit_content (pos,
-                                       mb))
+    if ( (NULL == pos->env) &&
+         (GNUNET_YES == transmit_content (pos,
+                                          mb)) ) {
       break;                  /* 'mb' was freed! */
+    }
   }
   consider_gathering ();
 }




reply via email to

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