Merge branch 'bug24167_025' into maint-0.2.5

This commit is contained in:
Nick Mathewson
2017-12-11 16:56:28 -05:00
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -721,6 +721,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;