From 3f89538e28eb1d60043ae0aa5d8a16448fb2425e Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 28 May 2009 22:05:21 +0000 Subject: [PATCH] when adding a torrent, set the default torrent speed limit to the global speed limit (the limit will still be disabled) --- libtransmission/torrent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 734e2bfc3..c07e567f6 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -619,7 +619,9 @@ torrentRealInit( tr_torrent * tor, const tr_ctor * ctor ) if( !( loaded & TR_FR_SPEEDLIMIT ) ) { tr_torrentUseSpeedLimit( tor, TR_UP, FALSE ); + tr_torrentSetSpeedLimit( tor, TR_UP, tr_sessionGetSpeedLimit( tor->session, TR_UP ) ); tr_torrentUseSpeedLimit( tor, TR_DOWN, FALSE ); + tr_torrentSetSpeedLimit( tor, TR_DOWN, tr_sessionGetSpeedLimit( tor->session, TR_DOWN ) ); tr_torrentUseSessionLimits( tor, TRUE ); }