Catch up with an old libT API change and allow autostart to be disabled again.
This commit is contained in:
parent
51ba44470f
commit
511470bfa4
|
@ -500,16 +500,17 @@ opentor( const char * path, const char * hash, uint8_t * data, size_t size,
|
||||||
if( NULL != path )
|
if( NULL != path )
|
||||||
{
|
{
|
||||||
tor->tor = tr_torrentInit( gl_handle, path, dir,
|
tor->tor = tr_torrentInit( gl_handle, path, dir,
|
||||||
TR_FLAG_SAVE, &errcode );
|
TR_FLAG_SAVE | TR_FLAG_PAUSED, &errcode );
|
||||||
}
|
}
|
||||||
else if( NULL != hash )
|
else if( NULL != hash )
|
||||||
{
|
{
|
||||||
tor->tor = tr_torrentInitSaved( gl_handle, hash, dir, 0, &errcode );
|
tor->tor = tr_torrentInitSaved( gl_handle, hash, dir, TR_FLAG_PAUSED,
|
||||||
|
&errcode );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tor->tor = tr_torrentInitData( gl_handle, data, size, dir,
|
tor->tor = tr_torrentInitData( gl_handle, data, size, dir,
|
||||||
TR_FLAG_SAVE, &errcode );
|
TR_FLAG_SAVE | TR_FLAG_PAUSED, &errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( NULL == tor->tor )
|
if( NULL == tor->tor )
|
||||||
|
|
Loading…
Reference in New Issue