diff options
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); } |