Explorar el Código

and another fix

svn:r6138
Roger Dingledine hace 20 años
padre
commit
a98b25137c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/or/main.c

+ 2 - 1
src/or/main.c

@@ -1543,7 +1543,8 @@ tor_cleanup(void)
     unlink(options->PidFile);
     unlink(options->PidFile);
   if (accounting_is_enabled(options))
   if (accounting_is_enabled(options))
     accounting_record_bandwidth_usage(time(NULL));
     accounting_record_bandwidth_usage(time(NULL));
-  or_state_save();
+  if (options->command == CMD_RUN_TOR)
+    or_state_save();
   tor_free_all(0); /* move tor_free_all back into the ifdef below later. XXX*/
   tor_free_all(0); /* move tor_free_all back into the ifdef below later. XXX*/
   crypto_global_cleanup();
   crypto_global_cleanup();
 #ifdef USE_DMALLOC
 #ifdef USE_DMALLOC