From 236bdc594f35f6863fef9a0a31fd0ac186ed3b72 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 21 Oct 2009 23:32:02 +0000 Subject: [PATCH] #2524 torrent peer limit not saved right away --- libtransmission/torrent.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 9e9488da3..099802a27 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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