From: Andre Noll Date: Sun, 11 Nov 2007 19:24:20 +0000 (+0100) Subject: Fix com_nomore. X-Git-Tag: v0.3.0~117 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=b5d4ebe6e9694c7aba429c6a4a0cc30c25e1640f;ds=sidebyside Fix com_nomore. --- 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; }