aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-11 16:56:31 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-11 16:56:31 -0500
commiteecfed0cd2c8c92175106e211d1662fa43fc60bc (patch)
treedf98ca388015517b03401b2e51f3476ec8b7f823 /src/or/connection.c
parenteaaa1108a3eb1271ad2c8f3fbb8a6845d24de874 (diff)
parentf7151387d937bd1113f4c694b170305d80dde9fa (diff)
downloadtor-eecfed0cd2c8c92175106e211d1662fa43fc60bc.tar.gz
tor-eecfed0cd2c8c92175106e211d1662fa43fc60bc.zip
Merge branch 'maint-0.2.8' into maint-0.2.9
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index d30ec46357..8b00d637f6 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -752,6 +752,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;