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:
parent
b19c79cff8
commit
236bdc594f
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue