aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-17 08:35:52 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-17 08:35:52 -0500
commit3a364309ace5bc0b75b724484d6b27d84ec6a8b1 (patch)
tree1400c003f4c8ff66941b78fdac2335fc39ca9554 /src/or/connection.c
parent0571015819317f6b52416d8023a99ee5a8f31dee (diff)
parent95238eb9174f0cfee9d313ce15b4f9b471f3d0e5 (diff)
downloadtor-3a364309ace5bc0b75b724484d6b27d84ec6a8b1.tar.gz
tor-3a364309ace5bc0b75b724484d6b27d84ec6a8b1.zip
Merge branch 'bug24167_025' into maint-0.3.2
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 632a833652..d2cf4fb416 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -770,6 +770,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;