diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-12-11 16:56:31 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-11 16:56:31 -0500 |
commit | da38904efbdd0c2c6b754aed7f75201e3c1cd97a (patch) | |
tree | e5047f8efb2dd9292adfc854cf5d55e94250b100 /src | |
parent | 2ea573ece8f168749b40eddcd023b71bf05a4fef (diff) | |
parent | eecfed0cd2c8c92175106e211d1662fa43fc60bc (diff) | |
download | tor-da38904efbdd0c2c6b754aed7f75201e3c1cd97a.tar.gz tor-da38904efbdd0c2c6b754aed7f75201e3c1cd97a.zip |
Merge branch 'maint-0.2.9' into maint-0.3.0
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 188276026f..5628c6a3f9 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -761,6 +761,10 @@ connection_close_immediate(connection_t *conn) connection_unregister_events(conn); + /* Prevent the event from getting unblocked. */ + conn->read_blocked_on_bw = + conn->write_blocked_on_bw = 0; + if (SOCKET_OK(conn->s)) tor_close_socket(conn->s); conn->s = TOR_INVALID_SOCKET; |