diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-12-22 09:45:26 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-12-22 09:45:26 -0500 |
commit | 878a684386cd4f7570bbc221fdfccdf005611c34 (patch) | |
tree | 96510e4afb077e1f19b41736c3c836182a83c308 /src/or/connection.c | |
parent | 8cdeaedf86fe802f5a6f590da61e8100683fed57 (diff) | |
parent | e5e50d86ca4d4cf7ec3f78dbaa989fb4b6063f25 (diff) | |
download | tor-878a684386cd4f7570bbc221fdfccdf005611c34.tar.gz tor-878a684386cd4f7570bbc221fdfccdf005611c34.zip |
Merge remote-tracking branch 'public/bug4697'
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 4cdfb7a6a5..a6d5d8f1e4 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -2953,6 +2953,9 @@ connection_handle_event_cb(struct bufferevent *bufev, short event, void *arg) { connection_t *conn = arg; (void) bufev; + if (conn->marked_for_close) + return; + if (event & BEV_EVENT_CONNECTED) { tor_assert(connection_state_is_connecting(conn)); if (connection_finished_connecting(conn)<0) |