aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2011-06-05 05:43:27 -0700
committerRobert Ransom <rransom.8774@gmail.com>2011-06-05 05:43:27 -0700
commit8a69cc04683c7e3cfe45150591a47ee7933dce05 (patch)
tree668f445f1b2c95c0d895a0c550fe4e670a08a7a6 /src
parentbc607bee3fc5ae8de0e08d99eaa69180e3184c60 (diff)
downloadtor-8a69cc04683c7e3cfe45150591a47ee7933dce05.tar
tor-8a69cc04683c7e3cfe45150591a47ee7933dce05.tar.gz
Report SIGNAL event to controllers when acting on delayed NEWNYM
Fixes bug 3349.
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index bb56be7c9..28a98ac4b 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1030,6 +1030,8 @@ signewnym_impl(time_t now)
rend_client_purge_state();
time_of_last_signewnym = now;
signewnym_is_pending = 0;
+
+ control_event_signal(SIGNEWNYM);
}
/** Perform regular maintenance tasks. This function gets run once per
@@ -1887,7 +1889,6 @@ process_signal(uintptr_t sig)
(int)(MAX_SIGNEWNYM_RATE+time_of_last_signewnym-now));
} else {
signewnym_impl(now);
- control_event_signal(sig);
}
break;
}