mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
remove redundant lines
svn:r3607
This commit is contained in:
parent
89d422914a
commit
07a3307460
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user