fixed bug in connect candidate counter

This commit is contained in:
Arvid Norberg 2009-09-09 16:42:52 +00:00
parent d168a709a2
commit ddbb35cf7d
2 changed files with 5 additions and 1 deletions

View File

@ -80,6 +80,7 @@ release 0.14.6
* fixed bug where web seeds would not disconnect if being resolved when
the torrent was paused
* fixed download piece performance bug in piece picker
* fixed bug in connect candidate counter
release 0.14.5

View File

@ -167,7 +167,10 @@ namespace libtorrent
virtual ~peer_connection();
void set_peer_info(policy::peer* pi)
{ m_peer_info = pi; }
{
TORRENT_ASSERT(m_peer_info == 0 || pi == 0 );
m_peer_info = pi;
}
policy::peer* peer_info_struct() const
{ return m_peer_info; }