From b5d4ebe6e9694c7aba429c6a4a0cc30c25e1640f Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 11 Nov 2007 20:24:20 +0100 Subject: [PATCH] Fix com_nomore. --- vss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vss.c b/vss.c index 75cf0f87..e470a737 100644 --- a/vss.c +++ b/vss.c @@ -184,6 +184,8 @@ static void vss_eof(void) senders[i].shutdown_clients(); return; } + if (mmd->new_vss_status_flags & VSS_NOMORE) + mmd->new_vss_status_flags = VSS_NEXT; gettimeofday(&now, NULL); tv_add(&mmd->afd.afhi.eof_tv, &now, &eof_barrier); munmap(map, mmd->size); @@ -301,8 +303,6 @@ struct timeval *vss_preselect(fd_set *rfds, fd_set *wfds, int *max_fileno) tv_add(&mmd->afd.afhi.eof_tv, &now, &eof_barrier); if (vss_repos()) tv_add(&now, &announce_tv, &data_send_barrier); - if (mmd->new_vss_status_flags & VSS_NOMORE) - mmd->new_vss_status_flags = VSS_NEXT; } mmd->chunks_sent = 0; } -- 2.39.5