remove redundant lines

svn:r3607
This commit is contained in:
Roger Dingledine 2005-02-09 23:54:30 +00:00
parent 89d422914a
commit 07a3307460

View File

@ -313,12 +313,10 @@ void connection_close_immediate(connection_t *conn)
if (conn->read_event) { if (conn->read_event) {
event_del(conn->read_event); event_del(conn->read_event);
tor_free(conn->read_event); tor_free(conn->read_event);
conn->read_event = NULL;
} }
if (conn->write_event) { if (conn->write_event) {
event_del(conn->write_event); event_del(conn->write_event);
tor_free(conn->write_event); tor_free(conn->write_event);
conn->write_event = NULL;
} }
tor_close_socket(conn->s); tor_close_socket(conn->s);
conn->s = -1; conn->s = -1;