From 020a9ae87f52e1e8020fd39016b546994c523eef Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Wed, 7 Sep 2016 15:32:48 +0000 Subject: [PATCH] Only one transmit_content can go at a time --- src/fs/gnunet-service-fs_push.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 (); } -- 2.25.1