From: David Barksdale Date: Wed, 7 Sep 2016 15:32:48 +0000 (+0000) Subject: Only one transmit_content can go at a time X-Git-Tag: initial-import-from-subversion-38251~287 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=020a9ae87f52e1e8020fd39016b546994c523eef;p=oweals%2Fgnunet.git Only one transmit_content can go at a time --- diff --git a/src/fs/gnunet-service-fs_push.c b/src/fs/gnunet-service-fs_push.c index fe5d0e1e9..361d30755 100644 --- a/src/fs/gnunet-service-fs_push.c +++ b/src/fs/gnunet-service-fs_push.c @@ -518,9 +518,11 @@ process_migration_content (void *cls, 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 (); }