and another fix

svn:r6138
This commit is contained in:
Roger Dingledine 2006-03-12 20:48:59 +00:00
parent 98476c71d2
commit a98b25137c

View File

@ -1543,7 +1543,8 @@ tor_cleanup(void)
unlink(options->PidFile);
if (accounting_is_enabled(options))
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*/
crypto_global_cleanup();
#ifdef USE_DMALLOC