~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to src/PeerReceiveHandshakeCommand.cc

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2010-11-24 12:26:31 UTC
  • mfrom: (1.6.1 upstream) (2.3.8 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124122631-upujekj1ek94h3x2
Tags: 1.10.6-1
* New upstream release:
  + Fixed FTBFS on alpha arch (Closes: #590257)
  + Added IPv6 support (Closes: #448390)
* debian/patches/ftbfs_kfreebsd.diff:
  + Dropped, merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
  peerConnection_(peerConnection)
74
74
{
75
75
  if(peerConnection_.isNull()) {
76
 
    peerConnection_.reset(new PeerConnection(cuid, getSocket()));
 
76
    peerConnection_.reset(new PeerConnection(cuid, getPeer(), getSocket()));
77
77
  }
78
78
}
79
79
 
114
114
        (StringFormat("Unknown info hash %s",
115
115
                      util::toHex(infoHash).c_str()).str());
116
116
    }
117
 
 
 
117
    if(btRuntime->isHalt()) {
 
118
      getLogger()->debug("Info hash found but the download is over."
 
119
                         " Dropping connection.");
 
120
      return true;
 
121
    }
118
122
    TransferStat tstat =
119
123
      downloadContext->getOwnerRequestGroup()->calculateStat();
120
124
    const unsigned int maxDownloadLimit =