mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk libT) small bandwidth patch from wereHamster
This commit is contained in:
parent
7f1fe69815
commit
94c1b90fe1
2 changed files with 3 additions and 1 deletions
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue