diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-08-07 19:27:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-08-07 19:27:38 +0000 |
commit | 4e735da5da5ffce3a86af7138ed36a46f45409a7 (patch) | |
tree | bdb296beb4f6e054187d31d072932a73ede22c32 /src/or/connection.c | |
parent | 5c4da9dec68a90b8c497805be8af432818447378 (diff) | |
download | tor-4e735da5da5ffce3a86af7138ed36a46f45409a7.tar.gz tor-4e735da5da5ffce3a86af7138ed36a46f45409a7.zip |
Also set event_mask=0 in connection_free_all, and dont send events to marked control conns (for good measure)
svn:r4729
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 7 |
1 files changed, 7 insertions, 0 deletions
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;i<n;i++) + if (carray[i]->type == CONN_TYPE_CONTROL) + carray[i]->event_mask = 0; + control_update_global_event_mask(); + for (i=0;i<n;i++) _connection_free(carray[i]); |