mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:50:00 +00:00
(trunk libT) possible fix for the transfers-not-loaded-on-startup issue introduced in r7806
This commit is contained in:
parent
1205605953
commit
983455abbc
2 changed files with 6 additions and 2 deletions
|
@ -529,7 +529,11 @@ tr_sessionInit( const char * tag,
|
|||
|
||||
tr_bencFree( &settings );
|
||||
|
||||
session->isWaiting = TRUE;
|
||||
tr_runInEventThread( session, tr_sessionInitImpl, session );
|
||||
while( session->isWaiting )
|
||||
tr_wait( 100 );
|
||||
|
||||
return session;
|
||||
}
|
||||
static void
|
||||
|
@ -542,10 +546,9 @@ tr_sessionInitImpl( void * vsession )
|
|||
tr_inf( _( "%s %s started" ), TR_NAME, LONG_VERSION_STRING );
|
||||
|
||||
tr_statsInit( session );
|
||||
|
||||
session->web = tr_webInit( session );
|
||||
|
||||
metainfoLookupRescan( session );
|
||||
session->isWaiting = FALSE;
|
||||
}
|
||||
|
||||
/***
|
||||
|
|
|
@ -64,6 +64,7 @@ struct tr_session
|
|||
tr_bool isProxyEnabled;
|
||||
tr_bool isProxyAuthEnabled;
|
||||
tr_bool isClosed;
|
||||
tr_bool isWaiting;
|
||||
tr_bool useLazyBitfield;
|
||||
|
||||
tr_bool isSpeedLimited[2];
|
||||
|
|
Loading…
Add table
Reference in a new issue