diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-03-12 11:28:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-03-12 11:28:18 -0400 |
commit | d4c17162632b662c333fb09b930838c3884a6fc7 (patch) | |
tree | ed3534b3b6b8dd33595ec022df7c4b87d7d35f93 /src/or/cpuworker.c | |
parent | 648af0438d4a293f12b649afc47dd947a7666a05 (diff) | |
download | tor-d4c17162632b662c333fb09b930838c3884a6fc7.tar.gz tor-d4c17162632b662c333fb09b930838c3884a6fc7.zip |
add an explanatory comment
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index e3781ada1c..d511ecf84c 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -178,8 +178,12 @@ update_state_threadfn(void *state_, void *work_) void cpuworkers_rotate_keyinfo(void) { - if (!threadpool) + if (!threadpool) { + /* If we're a client, then we won't have cpuworkers, and we won't need + * to tell them to rotate their state. + */ return; + } if (threadpool_queue_update(threadpool, worker_state_new, update_state_threadfn, |