merged bootstrap.sh script from RC_0_16

This commit is contained in:
Arvid Norberg 2013-05-29 02:11:15 +00:00
parent ad8c105a24
commit fcff3e0e00
3 changed files with 7 additions and 1 deletions

View File

@ -21,6 +21,7 @@
* fix uTP edge case where udp socket buffer fills up
* fix nagle implementation in uTP
* add bootstrap.sh to generage configure script and run configure
* fix bug in SOCK5 UDP support
* fix issue where torrents added by URL would not be started immediately

5
bootstrap.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
./autotool.sh
./configure $@

View File

@ -319,6 +319,7 @@ namespace libtorrent
return m_last_unchoke < rhs.m_last_unchoke;
}
// return true if 'this' peer should be preferred to be unchoke over p
bool peer_connection::unchoke_compare(boost::intrusive_ptr<peer_connection const> const& p) const
{
TORRENT_ASSERT(p);
@ -401,7 +402,6 @@ namespace libtorrent
if (score2 > score1) return false;
}
// if both peers have are still in their send quota or not in their send quota
// prioritize the one that has waited the longest to be unchoked
return m_last_unchoke < rhs.m_last_unchoke;
}