diff options
author | Roger Dingledine <arma@torproject.org> | 2003-03-11 01:51:41 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-03-11 01:51:41 +0000 |
commit | 70b35ce8c2fba086836c3c4069f3284918690b74 (patch) | |
tree | d53eb31390ad5d3d8d089686f311a37cea73cb01 /src/or/connection.c | |
parent | fb2f4a0418d1bf16d28a14b4dc80c417e61917e8 (diff) | |
download | tor-70b35ce8c2fba086836c3c4069f3284918690b74.tar tor-70b35ce8c2fba086836c3c4069f3284918690b74.tar.gz |
lazy (just in time) directory rebuilding
svn:r174
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 63adb408d..8e7fcb7c0 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -123,6 +123,9 @@ connection_t *connection_new(int type) { return NULL; } } + if(type == CONN_TYPE_OR) { + directory_set_dirty(); + } return conn; } @@ -150,6 +153,9 @@ void connection_free(connection_t *conn) { log(LOG_INFO,"connection_free(): closing fd %d.",conn->s); close(conn->s); } + if(conn->type == CONN_TYPE_OR) { + directory_set_dirty(); + } free(conn); } |