Changeset 11936


Ignore:
Timestamp:
Feb 18, 2011, 12:36:27 AM (11 years ago)
Author:
jch
Message:

Don't use read_enabled in get_rb_size.

We're no longer maintaining read_enabled, as there are simpler ways of
doing the same. Additionally, we used RBDrained incorrectly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r11935 r11936  
    408408    assert( tr_isPeerIo( io ) );
    409409
    410     if( io->read_enabled )
    411         bytes =
    412             tr_bandwidthClamp( &io->bandwidth, TR_DOWN, UTP_READ_BUFFER_SIZE );
    413     else
    414         bytes = 0;
     410    bytes = tr_bandwidthClamp( &io->bandwidth, TR_DOWN, UTP_READ_BUFFER_SIZE );
    415411
    416412    return UTP_READ_BUFFER_SIZE - bytes;
Note: See TracChangeset for help on using the changeset viewer.