diff options
author | John Langford <jl@humpty.(none)> | 2010-09-21 05:59:35 +0400 |
---|---|---|
committer | John Langford <jl@humpty.(none)> | 2010-09-21 05:59:35 +0400 |
commit | b896e10dfa7433d2486a9478d474c912955d29a8 (patch) | |
tree | d91d88f726b53b69acab2ee0fb15ae37636ac226 /multisource.cc | |
parent | b4d5eb475c659a75a814ee1d229753da194d46fb (diff) |
integrated Nikos bugfix & packing
Diffstat (limited to 'multisource.cc')
-rw-r--r-- | multisource.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/multisource.cc b/multisource.cc index 61251845..ad1bec05 100644 --- a/multisource.cc +++ b/multisource.cc @@ -96,7 +96,7 @@ int receive_features(parser* p, void* ex) perror(NULL); exit (1); } - for (int index = 0; index < (int)input->files.index(); index++) + for (int index = 0; index < (int)(input->files.index()-num_finished); index++) { int sock = input->files[index]; if (FD_ISSET(sock, &fds)) @@ -115,6 +115,7 @@ int receive_features(parser* p, void* ex) p->counts[index]=p->counts[swap_target]; p->counts[swap_target] = temp; num_finished++; + index--; } else { |