Pārlūkot izejas kodu

minor cleanup

in options_act() we set running_tor to options->command == CMD_RUN_TOR
once and used that in all but one place.  Now we use running_tor in that
place also.


svn:r13819
Peter Palfrader 16 gadi atpakaļ
vecāks
revīzija
9e7b4400dc
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/or/config.c

+ 1 - 1
src/or/config.c

@@ -1146,7 +1146,7 @@ options_act(or_options_t *old_options)
   }
 
   /* Load state */
-  if (! global_state && options->command == CMD_RUN_TOR) {
+  if (! global_state && running_tor) {
     if (or_state_load())
       return -1;
     rep_hist_load_mtbf_data(time(NULL));