mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
and another fix
svn:r6138
This commit is contained in:
parent
98476c71d2
commit
a98b25137c
@ -1543,6 +1543,7 @@ 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));
|
||||||
|
if (options->command == CMD_RUN_TOR)
|
||||||
or_state_save();
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user