diff options
author | Roger Dingledine <arma@torproject.org> | 2009-02-20 10:25:08 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-02-20 10:25:08 +0000 |
commit | 1b6688786cf008e8ae03684136efa43e0f915e92 (patch) | |
tree | 006b4ab8d0215a465695489f734cce003a32183d /src/or/control.c | |
parent | cdbd371d9f2667a6b7bb5670ce865062032b80d2 (diff) | |
download | tor-1b6688786cf008e8ae03684136efa43e0f915e92.tar.gz tor-1b6688786cf008e8ae03684136efa43e0f915e92.zip |
send the newconsensus event if the controller has asked for newconsensus
events, not if he's asked for ns events
svn:r18656
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c index 6a556ec30d..5600bdcfd9 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -3568,6 +3568,8 @@ control_event_networkstatus_changed(smartlist_t *statuses) int control_event_newconsensus(const networkstatus_t *consensus) { + if (!control_event_is_interesting(EVENT_NEWCONSENSUS)) + return 0; return control_event_networkstatus_changed_helper( consensus->routerstatus_list, EVENT_NEWCONSENSUS, "NEWCONSENSUS"); } |