diff --git a/src/or/connection.c b/src/or/connection.c index f68fd3362d..ea627620ca 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -276,6 +276,13 @@ connection_free_all(void) connection_t **carray; get_connection_array(&carray,&n); + + /* We don't want to log any messages to controllers. */ + for (i=0;itype == CONN_TYPE_CONTROL) + carray[i]->event_mask = 0; + control_update_global_event_mask(); + for (i=0;itype == CONN_TYPE_CONTROL && + !conns[i]->marked_for_close && conns[i]->state == CONTROL_CONN_STATE_OPEN_V0 && conns[i]->event_mask & (1<type == CONN_TYPE_CONTROL && + !conns[i]->marked_for_close && conns[i]->state == CONTROL_CONN_STATE_OPEN_V1 && conns[i]->event_mask & (1<