* Compare the block data downloaded by a non-leader with the current

and mark the block transfer if they do not match.

* Erase handshakes in DownloadMain::stop() rather than
Manager::cleanup_download(). This was causing exceptions in PeerList.

* Add 1000ns to the timeout when polling to avoid rounding errors
messing up scheduling.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@724 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-06-17 23:46:00 +00:00
parent c95eb62802
commit f1c9188d55
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ PollManagerSelect::~PollManagerSelect() {
void
PollManagerSelect::poll(rak::timer timeout) {
torrent::perform();
timeout = std::min(timeout, rak::timer(torrent::next_timeout()));
timeout = std::min(timeout, rak::timer(torrent::next_timeout())) + 1000;
#if defined USE_VARIABLE_FDSET
std::memset(m_readSet, 0, m_setSize);