get fastresume working again (I think)

This commit is contained in:
Charles Kerr 2007-10-13 04:19:38 +00:00
parent 6179809146
commit 89d511e9dd
2 changed files with 2 additions and 4 deletions

View File

@ -546,6 +546,8 @@ fastResumeLoadImpl ( tr_torrent * tor,
tr_dbg( "Resume file '%s' loaded", path ); tr_dbg( "Resume file '%s' loaded", path );
tor->destination = tr_strdup( fallbackDestination );
/* Check format version */ /* Check format version */
fread( &version, 4, 1, file ); fread( &version, 4, 1, file );
if( 0 == version ) if( 0 == version )
@ -626,9 +628,6 @@ fastResumeLoadImpl ( tr_torrent * tor,
return ret; return ret;
} }
if( tor->destination == NULL )
tor->destination = tr_strdup( fallbackDestination );
ret |= TR_FR_DESTINATION; ret |= TR_FR_DESTINATION;
continue; continue;
} }

View File

@ -110,7 +110,6 @@ tr_handle * tr_init( const char * tag )
tr_handle * h; tr_handle * h;
int i; int i;
ccc
#ifndef WIN32 #ifndef WIN32
/* Don't exit when writing on a broken socket */ /* Don't exit when writing on a broken socket */
signal( SIGPIPE, SIG_IGN ); signal( SIGPIPE, SIG_IGN );