Explorar o código

add an explanatory comment

Nick Mathewson %!s(int64=11) %!d(string=hai) anos
pai
achega
d4c1716263
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/or/cpuworker.c

+ 5 - 1
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,