1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00

(trunk libT) #3382 "2.01+ (10919) hangs after launch" -- fixed.

This commit is contained in:
Charles Kerr 2010-07-01 16:09:47 +00:00
parent 2c85178f9b
commit 5a8c94cfe4
2 changed files with 2 additions and 2 deletions

View file

@ -543,7 +543,7 @@ tr_dhtStatus( tr_session * session, int af, int * nodes_return )
tr_runInEventThread( session, getstatus, &closure ); tr_runInEventThread( session, getstatus, &closure );
while( closure.status < 0 ) while( closure.status < 0 )
tr_wait_msec( 10 /*msec*/ ); tr_wait_msec( 50 /*msec*/ );
if( nodes_return ) if( nodes_return )
*nodes_return = closure.count; *nodes_return = closure.count;

View file

@ -797,7 +797,7 @@ tr_wait_msec( long int msec )
#else #else
struct timespec ts; struct timespec ts;
ts.tv_sec = msec / 1000; ts.tv_sec = msec / 1000;
ts.tv_sec = ( msec % 1000 ) * 1000000; ts.tv_nsec = ( msec % 1000 ) * 1000000;
nanosleep( &ts, NULL ); nanosleep( &ts, NULL );
#endif #endif
} }