Browse Source

bugfix: if the wedged dir conn has no bytes to flush, then we never
close it.


svn:r1924

Roger Dingledine 21 years ago
parent
commit
834ffa358f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/or/main.c

+ 2 - 0
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;
   }