mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
(1) fix a bug in torrent creation. (2) fix a bug in torrent paths on startup in gtk
This commit is contained in:
parent
178ab970e7
commit
d96ed80aa2
3 changed files with 3 additions and 3 deletions
|
@ -361,7 +361,7 @@ tr_core_load( TrCore * self, gboolean forcepaused )
|
|||
if( forcepaused )
|
||||
flags |= TR_FLAG_PAUSED;
|
||||
|
||||
torrents = tr_loadTorrents ( self->handle, path, flags, &count );
|
||||
torrents = tr_loadTorrents ( self->handle, NULL, flags, &count );
|
||||
for( i=0; i<count; ++i )
|
||||
tr_core_insert( self, tr_torrent_new_preexisting( torrents[i] ) );
|
||||
tr_free( torrents );
|
||||
|
|
|
@ -230,7 +230,7 @@ getHashInfo ( tr_metainfo_builder * b )
|
|||
|
||||
assert( bufptr-buf == (int)thisPieceSize );
|
||||
assert( pieceRemain == 0 );
|
||||
tr_sha1( buf, walk, thisPieceSize, NULL );
|
||||
tr_sha1( walk, buf, thisPieceSize, NULL );
|
||||
walk += SHA_DIGEST_LENGTH;
|
||||
|
||||
if( b->abortFlag ) {
|
||||
|
|
|
@ -69,7 +69,7 @@ enum
|
|||
|
||||
KEEPALIVE_INTERVAL_SECS = 90, /* idle seconds before we send a keepalive */
|
||||
PEX_INTERVAL = (60 * 1000), /* msec between calls to sendPex() */
|
||||
PEER_PULSE_INTERVAL = (20), /* msec between calls to pulse() */
|
||||
PEER_PULSE_INTERVAL = (133), /* msec between calls to pulse() */
|
||||
RATE_PULSE_INTERVAL = (333), /* msec between calls to ratePulse() */
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue