(trunk libT) fix error in tr_ctorNew() when initializing the default/fallback ctor values
This commit is contained in:
parent
19d261fc40
commit
75663defbc
|
@ -452,9 +452,10 @@ tr_ctorNew( const tr_session * session )
|
|||
|
||||
ctor->session = session;
|
||||
ctor->bandwidthPriority = TR_PRI_NORMAL;
|
||||
tr_ctorSetPaused( ctor, TR_FALLBACK, tr_sessionGetPaused( session ) );
|
||||
tr_ctorSetDeleteSource( ctor, tr_sessionGetDeleteSource( session ) );
|
||||
if( session != NULL ) {
|
||||
if( session != NULL )
|
||||
{
|
||||
tr_ctorSetDeleteSource( ctor, tr_sessionGetDeleteSource( session ) );
|
||||
tr_ctorSetPaused( ctor, TR_FALLBACK, tr_sessionGetPaused( session ) );
|
||||
tr_ctorSetPeerLimit( ctor, TR_FALLBACK, session->peerLimitPerTorrent );
|
||||
tr_ctorSetDownloadDir( ctor, TR_FALLBACK, session->downloadDir );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue