mirror of https://github.com/aria2/aria2
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Drop connection when BtRuntime::isHalt() is true. * src/PeerReceiveHandshakeCommand.ccpull/1/head
parent
2ac3c5bc4d
commit
2b93562528
|
@ -1,6 +1,7 @@
|
|||
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Release 1.10.1
|
||||
Drop connection when BtRuntime::isHalt() is true.
|
||||
* src/PeerReceiveHandshakeCommand.cc
|
||||
|
||||
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
|
|
|
@ -114,7 +114,11 @@ bool PeerReceiveHandshakeCommand::executeInternal()
|
|||
(StringFormat("Unknown info hash %s",
|
||||
util::toHex(infoHash).c_str()).str());
|
||||
}
|
||||
|
||||
if(btRuntime->isHalt()) {
|
||||
getLogger()->debug("Info hash found but the download is over."
|
||||
" Dropping connection.");
|
||||
return true;
|
||||
}
|
||||
TransferStat tstat =
|
||||
downloadContext->getOwnerRequestGroup()->calculateStat();
|
||||
const unsigned int maxDownloadLimit =
|
||||
|
|
Loading…
Reference in New Issue