Commit e423f297 authored by Joris Guisson's avatar Joris Guisson
Browse files

Fix bug causing authenticated peers not to get accepted

parent 97c6bb75
Changes in 1.3.2:
- Fix bug causing authenticated peers not to get accepted
Changes in 1.3.1:
- Add workaround for broken handling of btrfs subvolumes by solid (306825)
- Fix crash when preallocating diskspace when a file is enabled during the download of a torrent (307178)
......
......@@ -221,12 +221,14 @@ namespace bt
return;
ConnectionLimit::Token::Ptr token = climit.acquire(d->tor.getInfoHash());
if(!token && d->killBadPeer())
{
if(!token)
{
d->killBadPeer();
token = climit.acquire(d->tor.getInfoHash());
if(token)
d->createPeer(sock, peer_id, support, false, token);
}
}
if(token)
d->createPeer(sock, peer_id, support, false, token);
}
void PeerManager::peerAuthenticated(bt::Authenticate* auth, bt::PeerConnector::WPtr pcon, bool ok, bt::ConnectionLimit::Token::Ptr token)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment