diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-04-03 05:22:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-04-03 05:22:33 +0000 |
commit | 0dc02328afa5e6ec6c1799bd013476ae02db568f (patch) | |
tree | 55030b458ccd38032fce95b58b8da3e746d98549 /src/or/connection_edge.c | |
parent | 2a332bf0b8ef1fb0cbe2958b8b129f77d58bc90e (diff) | |
download | tor-0dc02328afa5e6ec6c1799bd013476ae02db568f.tar.gz tor-0dc02328afa5e6ec6c1799bd013476ae02db568f.zip |
Move most of *_mark_for_close out of macros.
svn:r3992
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index b176dff971..1e72d6f7d3 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -32,9 +32,8 @@ _connection_mark_unattached_ap(connection_t *conn, int endreason, conn->has_sent_end = 1; /* no circ yet */ if (conn->marked_for_close) { - log(LOG_WARN,"Duplicate call to connection_mark_unattached_ap at %s:%d (first marked at %s:%d)", - file, line, - conn->marked_for_close_file,conn->marked_for_close); + /* This call will warn as appropriate. */ + _connection_mark_for_close(conn, line, file); return; } @@ -52,9 +51,7 @@ _connection_mark_unattached_ap(connection_t *conn, int endreason, connection_ap_handshake_socks_resolved(conn,RESOLVED_TYPE_ERROR,0,NULL); } - _connection_mark_for_close(conn); - conn->marked_for_close_file = file; - conn->marked_for_close = line; + _connection_mark_for_close(conn, line, file); conn->hold_open_until_flushed = 1; } |