diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2016-09-07 15:32:48 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2016-09-07 15:32:48 +0000 |
commit | 020a9ae87f52e1e8020fd39016b546994c523eef (patch) | |
tree | ade960c927005c810d6341f5b4e8b8db6fe3b3be /src/fs/gnunet-service-fs_push.c | |
parent | 95cac55800e8f7b4e59a03d5acefb200b20ab3c1 (diff) | |
download | gnunet-020a9ae87f52e1e8020fd39016b546994c523eef.tar.gz gnunet-020a9ae87f52e1e8020fd39016b546994c523eef.zip |
Only one transmit_content can go at a time
Diffstat (limited to 'src/fs/gnunet-service-fs_push.c')
-rw-r--r-- | src/fs/gnunet-service-fs_push.c | 6 |
1 files 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, | |||
518 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 518 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
519 | "Preparing to push best content to peer %s\n", | 519 | "Preparing to push best content to peer %s\n", |
520 | GNUNET_i2s (GSF_connected_peer_get_identity2_(pos->peer))); | 520 | GNUNET_i2s (GSF_connected_peer_get_identity2_(pos->peer))); |
521 | if (GNUNET_YES == transmit_content (pos, | 521 | if ( (NULL == pos->env) && |
522 | mb)) | 522 | (GNUNET_YES == transmit_content (pos, |
523 | mb)) ) { | ||
523 | break; /* 'mb' was freed! */ | 524 | break; /* 'mb' was freed! */ |
525 | } | ||
524 | } | 526 | } |
525 | consider_gathering (); | 527 | consider_gathering (); |
526 | } | 528 | } |