#2524 torrent peer limit not saved right away

This commit is contained in:
Mitchell Livingston 2009-10-21 23:32:02 +00:00
parent b19c79cff8
commit 236bdc594f
1 changed files with 6 additions and 1 deletions

View File

@ -1862,7 +1862,12 @@ tr_torrentSetPeerLimit( tr_torrent * tor,
{
assert( tr_isTorrent( tor ) );
tor->maxConnectedPeers = maxConnectedPeers;
if ( tor->maxConnectedPeers != maxConnectedPeers )
{
tor->maxConnectedPeers = maxConnectedPeers;
tr_torrentSetDirty( tor );
}
}
uint16_t