diff options
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 855fc9e39..f68fd3362 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -253,6 +253,10 @@ connection_free(connection_t *conn) if (conn->state == OR_CONN_STATE_OPEN) directory_set_dirty(); } + if (conn->type == CONN_TYPE_CONTROL) { + conn->event_mask = 0; + control_update_global_event_mask(); + } connection_unregister(conn); _connection_free(conn); } |