2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Drop connection when BtRuntime::isHalt() is true.
	* src/PeerReceiveHandshakeCommand.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-08-29 12:39:30 +00:00
parent 2ac3c5bc4d
commit 2b93562528
2 changed files with 7 additions and 2 deletions

View File

@ -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>

View File

@ -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 =