mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(trunk libT) #3382 "2.01+ (10919) hangs after launch" -- fixed.
This commit is contained in:
parent
2c85178f9b
commit
5a8c94cfe4
2 changed files with 2 additions and 2 deletions
|
@ -543,7 +543,7 @@ tr_dhtStatus( tr_session * session, int af, int * nodes_return )
|
|||
|
||||
tr_runInEventThread( session, getstatus, &closure );
|
||||
while( closure.status < 0 )
|
||||
tr_wait_msec( 10 /*msec*/ );
|
||||
tr_wait_msec( 50 /*msec*/ );
|
||||
|
||||
if( nodes_return )
|
||||
*nodes_return = closure.count;
|
||||
|
|
|
@ -797,7 +797,7 @@ tr_wait_msec( long int msec )
|
|||
#else
|
||||
struct timespec ts;
|
||||
ts.tv_sec = msec / 1000;
|
||||
ts.tv_sec = ( msec % 1000 ) * 1000000;
|
||||
ts.tv_nsec = ( msec % 1000 ) * 1000000;
|
||||
nanosleep( &ts, NULL );
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue