]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: only set conn->hold_open_until_flushed after marking
authorRoger Dingledine <arma@torproject.org>
Mon, 8 Mar 2004 01:19:57 +0000 (01:19 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 8 Mar 2004 01:19:57 +0000 (01:19 +0000)
svn:r1245

src/or/main.c

index 10dc270352f6e5aa05ca9c20ee18d1b80bea5dc4..766fcfb6b748c46ef8d2672019f089e947a21e09 100644 (file)
@@ -305,8 +305,8 @@ static void run_connection_housekeeping(int i, time_t now) {
       log_fn(LOG_INFO,"Expiring connection to %d (%s:%d).",
              i,conn->address, conn->port);
       /* flush anything waiting, e.g. a destroy for a just-expired circ */
-      conn->hold_open_until_flushed = 1;
       connection_mark_for_close(conn,0);
+      conn->hold_open_until_flushed = 1;
     } else {
       /* either a full router, or we've got a circuit. send a padding cell. */
       log_fn(LOG_DEBUG,"Sending keepalive to (%s:%d)",