From 834ffa358fc0bc61cfb22b647c437ad1bc58269f Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 28 May 2004 17:56:17 +0000 Subject: bugfix: if the wedged dir conn has no bytes to flush, then we never close it. svn:r1924 --- src/or/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/or/main.c b/src/or/main.c index ce510b9bea..1a75158bf4 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -360,6 +360,8 @@ static void run_connection_housekeeping(int i, time_t now) { connection_mark_for_close(conn); conn->hold_open_until_flushed = 1; /* give it a last chance */ } + } else { + connection_mark_for_close(conn); } return; } -- cgit v1.2.3-54-g00ecf