1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

#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

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