[or-cvs] r13819: minor cleanup in options_act() we set running_tor to options (tor/trunk/src/or)
weasel at seul.org
weasel at seul.org
Mon Mar 3 12:48:14 UTC 2008
Author: weasel
Date: 2008-03-03 07:48:13 -0500 (Mon, 03 Mar 2008)
New Revision: 13819
Modified:
tor/trunk/src/or/config.c
Log:
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.
Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c 2008-03-03 12:35:58 UTC (rev 13818)
+++ tor/trunk/src/or/config.c 2008-03-03 12:48:13 UTC (rev 13819)
@@ -1146,7 +1146,7 @@
}
/* 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));
More information about the tor-commits
mailing list