From 8a69cc04683c7e3cfe45150591a47ee7933dce05 Mon Sep 17 00:00:00 2001
From: Robert Ransom <rransom.8774@gmail.com>
Date: Sun, 5 Jun 2011 05:43:27 -0700
Subject: Report SIGNAL event to controllers when acting on delayed NEWNYM

Fixes bug 3349.
---
 src/or/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/or/main.c')

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;
     }
-- 
cgit v1.2.3