From 89d511e9dd38276d9ac949f2be03087f357b514b Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 13 Oct 2007 04:19:38 +0000 Subject: [PATCH] get fastresume working again (I think) --- libtransmission/fastresume.c | 5 ++--- libtransmission/transmission.c | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libtransmission/fastresume.c b/libtransmission/fastresume.c index c32d405af..89deaa1a5 100644 --- a/libtransmission/fastresume.c +++ b/libtransmission/fastresume.c @@ -546,6 +546,8 @@ fastResumeLoadImpl ( tr_torrent * tor, tr_dbg( "Resume file '%s' loaded", path ); + tor->destination = tr_strdup( fallbackDestination ); + /* Check format version */ fread( &version, 4, 1, file ); if( 0 == version ) @@ -626,9 +628,6 @@ fastResumeLoadImpl ( tr_torrent * tor, return ret; } - if( tor->destination == NULL ) - tor->destination = tr_strdup( fallbackDestination ); - ret |= TR_FR_DESTINATION; continue; } diff --git a/libtransmission/transmission.c b/libtransmission/transmission.c index d8e710c07..44f00a717 100644 --- a/libtransmission/transmission.c +++ b/libtransmission/transmission.c @@ -110,7 +110,6 @@ tr_handle * tr_init( const char * tag ) tr_handle * h; int i; -ccc #ifndef WIN32 /* Don't exit when writing on a broken socket */ signal( SIGPIPE, SIG_IGN );