aboutsummaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c3
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,