(trunk libT) small bandwidth patch from wereHamster

This commit is contained in:
Charles Kerr 2009-04-25 19:04:48 +00:00
parent 7f1fe69815
commit 94c1b90fe1
2 changed files with 3 additions and 1 deletions

View File

@ -217,7 +217,7 @@ phaseOne( tr_ptrArray * peerArray, tr_direction dir )
dbgmsg( "peer #%d of %d used %d bytes in this pass", i, n, bytesUsed );
if( bytesUsed == (int)increment )
if( bytesUsed > 0 )
++i;
else {
/* peer is done writing for now; move it to the end of the list */

View File

@ -1261,6 +1261,8 @@ request_exec( tr_session * session,
tr_benc * args_in = tr_bencDictFind( request, "arguments" );
const char * result = NULL;
fprintf( stderr, "got RPC request [%s]\n", tr_bencToJSON(request) );
if( callback == NULL )
callback = noop_response_callback;