mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +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 ) );
|
assert( tr_isTorrent( tor ) );
|
||||||
|
|
||||||
|
if ( tor->maxConnectedPeers != maxConnectedPeers )
|
||||||
|
{
|
||||||
tor->maxConnectedPeers = maxConnectedPeers;
|
tor->maxConnectedPeers = maxConnectedPeers;
|
||||||
|
|
||||||
|
tr_torrentSetDirty( tor );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t
|
uint16_t
|
||||||
|
|
Loading…
Reference in a new issue