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

Maintain information about enabled/disabled I/O.

File:
1 edited

Legend:

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

    r11928 r11929  
    584584    }
    585585
     586    io->write_enabled = 1;
     587    io->read_enabled = 1;
     588
    586589    return io;
    587590}
     
    701704    else
    702705        event_disable( io, event );
     706
     707    if( dir == TR_UP )
     708        io->write_enabled = isEnabled;
     709    else if( dir == TR_DOWN )
     710        io->read_enabled = isEnabled;
    703711}
    704712
Note: See TracChangeset for help on using the changeset viewer.