~ubuntu-branches/ubuntu/trusty/aria2/trusty-proposed

« back to all changes in this revision

Viewing changes to src/BtSeederStateChoke.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-12-16 18:41:03 UTC
  • mfrom: (2.5.21 sid)
  • Revision ID: package-import@ubuntu.com-20131216184103-xzah3019zwut429g
Tags: 1.18.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
  lastRound_ = global::wallclock();
152
152
 
153
153
  std::vector<PeerEntry> peerEntries;
154
 
  for(PeerSet::const_iterator i = peerSet.begin(), eoi = peerSet.end();
155
 
      i != eoi; ++i) {
156
 
    if((*i)->isActive() && (*i)->peerInterested()) {
157
 
      (*i)->chokingRequired(true);
158
 
      peerEntries.push_back(PeerEntry(*i));
 
154
  for(const auto& p : peerSet) {
 
155
    if(p->isActive() && p->peerInterested()) {
 
156
      p->chokingRequired(true);
 
157
      peerEntries.push_back(PeerEntry(p));
159
158
    }
160
159
  }
161
160