diff options
author | Roger Dingledine <arma@torproject.org> | 2006-03-12 20:48:59 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-03-12 20:48:59 +0000 |
commit | a98b25137c5ee2399b4350ca1bb3e1c39fc5aea6 (patch) | |
tree | 573f29b9359dedac0b2a380efcad067247a3c49c /src/or/main.c | |
parent | 98476c71d2166666b0b61da3a5dd75065ea5f3c1 (diff) | |
download | tor-a98b25137c5ee2399b4350ca1bb3e1c39fc5aea6.tar.gz tor-a98b25137c5ee2399b4350ca1bb3e1c39fc5aea6.zip |
and another fix
svn:r6138
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 9705b69d58..aee914acc8 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -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 |