summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-04-02 22:11:24 +0000
committerNick Mathewson <nickm@torproject.org>2005-04-02 22:11:24 +0000
commit055ee7c3231c8e0e2b645f318e990e4200bb5fbf (patch)
treeb3bca05da72a3d932bb1422015f5b4992f13b357 /src/or/main.c
parent4a90d3722969f6b0c8b7a4507af0889594fbed13 (diff)
downloadtor-055ee7c3231c8e0e2b645f318e990e4200bb5fbf.tar.gz
tor-055ee7c3231c8e0e2b645f318e990e4200bb5fbf.zip
Give better warnings if connection_close_unattached_ap gets called twice or called on a marked connection; rename it to connection_mark_unattached_ap.
svn:r3990
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 393e5a69e2..ec07e0fcce 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -478,7 +478,7 @@ void directory_all_unreachable(time_t now) {
AP_CONN_STATE_CIRCUIT_WAIT))) {
log_fn(LOG_NOTICE,"Network down? Failing connection to '%s:%d'.",
conn->socks_request->address, conn->socks_request->port);
- connection_close_unattached_ap(conn, END_STREAM_REASON_NET_UNREACHABLE);
+ connection_mark_unattached_ap(conn, END_STREAM_REASON_NET_UNREACHABLE);
}
}