From 511470bfa45d39eb5cfb7f4b121e84e106924d43 Mon Sep 17 00:00:00 2001 From: Josh Elsasser Date: Wed, 5 Sep 2007 04:05:30 +0000 Subject: [PATCH] Catch up with an old libT API change and allow autostart to be disabled again. --- daemon/torrents.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon/torrents.c b/daemon/torrents.c index a3089cfca..971816d23 100644 --- a/daemon/torrents.c +++ b/daemon/torrents.c @@ -500,16 +500,17 @@ opentor( const char * path, const char * hash, uint8_t * data, size_t size, if( NULL != path ) { tor->tor = tr_torrentInit( gl_handle, path, dir, - TR_FLAG_SAVE, &errcode ); + TR_FLAG_SAVE | TR_FLAG_PAUSED, &errcode ); } 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 { tor->tor = tr_torrentInitData( gl_handle, data, size, dir, - TR_FLAG_SAVE, &errcode ); + TR_FLAG_SAVE | TR_FLAG_PAUSED, &errcode ); } if( NULL == tor->tor )