diff options
author | Roger Dingledine <arma@torproject.org> | 2005-08-15 23:46:18 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-08-15 23:46:18 +0000 |
commit | 04d42ea4336c38dcb812757699513b4eaf89c95b (patch) | |
tree | 1b0ac34bf261092d4629378a87d14081d167bcc0 /src/or/cpuworker.c | |
parent | b1d3f124c46e954ef282c71586e34631e351c427 (diff) | |
download | tor-04d42ea4336c38dcb812757699513b4eaf89c95b.tar.gz tor-04d42ea4336c38dcb812757699513b4eaf89c95b.zip |
rotate dns and cpu workers if the controller changes options that
will affect them.
svn:r4787
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index d1c0f0e04d..397aa36696 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -100,7 +100,8 @@ cpuworkers_rotate(void) --num_cpuworkers; } last_rotation_time = time(NULL); - spawn_enough_cpuworkers(); + if (server_mode(get_options())) + spawn_enough_cpuworkers(); } /** If the cpuworker closes the connection, |