From: Nick Mathewson Date: Thu, 12 Mar 2015 15:28:18 +0000 (-0400) Subject: add an explanatory comment X-Git-Tag: tor-0.2.6.5-rc~7^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4c17162632b662c333fb09b930838c3884a6fc7;p=thirdparty%2Ftor.git add an explanatory comment --- 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,