[tor-commits] [tor/master] In control.c, reset the bootstrapping status on shutdown

nickm at torproject.org nickm at torproject.org
Wed Mar 14 11:12:54 UTC 2018


commit 6033538ac3466557a3453436a1a4fc98d6c581ab
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Dec 11 12:59:23 2017 -0500

    In control.c, reset the bootstrapping status on shutdown
    
    Part of #24587
---
 src/or/control.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/or/control.c b/src/or/control.c
index cce5c7953..0d63e3e3b 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -7620,6 +7620,9 @@ control_free_all(void)
     tor_event_free(flush_queued_events_event);
     flush_queued_events_event = NULL;
   }
+  bootstrap_percent = BOOTSTRAP_STATUS_UNDEF;
+  notice_bootstrap_percent = 0;
+  bootstrap_problems = 0;
 }
 
 #ifdef TOR_UNIT_TESTS





More information about the tor-commits mailing list