Changeset 11935


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

Revert "Maintain information about enabled/disabled I/O."

This reverts commit 604f8fd10db747e57d8710cc53326c0e114ad32c.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r11934 r11935  
    582582    }
    583583
    584     io->write_enabled = 1;
    585     io->read_enabled = 1;
    586 
    587584    return io;
    588585}
     
    711708    else
    712709        event_disable( io, event );
    713 
    714     if( dir == TR_UP )
    715         io->write_enabled = isEnabled;
    716     else if( dir == TR_DOWN ) {
    717         io->read_enabled = isEnabled;
    718         if( io->utp_socket && isEnabled )
    719             UTP_RBDrained(io->utp_socket);
    720     }
    721710}
    722711
  • trunk/libtransmission/peer-io.h

    r11933 r11935  
    106106    struct evbuffer     * outbuf;
    107107    struct tr_list      * outbuf_datatypes; /* struct tr_datatype */
    108    
    109     tr_bool               write_enabled;
    110     tr_bool               read_enabled;
    111108
    112109    struct event        * event_read;
Note: See TracChangeset for help on using the changeset viewer.