when adding a torrent, set the default torrent speed limit to the global speed limit (the limit will still be disabled)

This commit is contained in:
Mitchell Livingston 2009-05-28 22:05:21 +00:00
parent d0a57ce9d2
commit 3f89538e28
1 changed files with 2 additions and 0 deletions

View File

@ -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 );
}