mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
Revert "Maintain information about enabled/disabled I/O."
This reverts commit 604f8fd10db747e57d8710cc53326c0e114ad32c.
This commit is contained in:
@@ -581,9 +581,6 @@ tr_peerIoNew( tr_session * session,
|
||||
UTP_Connect( utp_socket );
|
||||
}
|
||||
|
||||
io->write_enabled = 1;
|
||||
io->read_enabled = 1;
|
||||
|
||||
return io;
|
||||
}
|
||||
|
||||
@@ -710,14 +707,6 @@ tr_peerIoSetEnabled( tr_peerIo * io,
|
||||
event_enable( io, event );
|
||||
else
|
||||
event_disable( io, event );
|
||||
|
||||
if( dir == TR_UP )
|
||||
io->write_enabled = isEnabled;
|
||||
else if( dir == TR_DOWN ) {
|
||||
io->read_enabled = isEnabled;
|
||||
if( io->utp_socket && isEnabled )
|
||||
UTP_RBDrained(io->utp_socket);
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
|
||||
@@ -105,9 +105,6 @@ typedef struct tr_peerIo
|
||||
struct evbuffer * inbuf;
|
||||
struct evbuffer * outbuf;
|
||||
struct tr_list * outbuf_datatypes; /* struct tr_datatype */
|
||||
|
||||
tr_bool write_enabled;
|
||||
tr_bool read_enabled;
|
||||
|
||||
struct event * event_read;
|
||||
struct event * event_write;
|
||||
|
||||
Reference in New Issue
Block a user