Browse Source

In control.c, reset the bootstrapping status on shutdown

Part of #24587
Nick Mathewson 8 years ago
parent
commit
6033538ac3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/or/control.c

+ 3 - 0
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