get fastresume working again (I think)
This commit is contained in:
parent
6179809146
commit
89d511e9dd
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue