diff options
author | Roger Dingledine <arma@torproject.org> | 2022-09-04 00:48:42 -0400 |
---|---|---|
committer | Micah Elizabeth Scott <beth@torproject.org> | 2023-05-10 07:37:11 -0700 |
commit | a5b0c7b4045d02acc15375a7d8bbad727b36e0de (patch) | |
tree | 01858c7b45d0b8935d8e911ac334c953ce74f97c /src/core/mainloop/cpuworker.c | |
parent | 0716cd7cb203f21876bf6fe1e1acdc438d8e2031 (diff) | |
download | tor-a5b0c7b4045d02acc15375a7d8bbad727b36e0de.tar.gz tor-a5b0c7b4045d02acc15375a7d8bbad727b36e0de.zip |
start the cpuworkers always, even for clients
prepares the way for client-side pow cpuworkers
also happens to resolve bug https://bugs.torproject.org/tpo/core/tor/40617
(which went into 0.4.7.4-alpha) because now we survive initing the
cpuworker subsystem when we're not a relay.
Diffstat (limited to 'src/core/mainloop/cpuworker.c')
-rw-r--r-- | src/core/mainloop/cpuworker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mainloop/cpuworker.c b/src/core/mainloop/cpuworker.c index 9ad8939e4d..4a22790b44 100644 --- a/src/core/mainloop/cpuworker.c +++ b/src/core/mainloop/cpuworker.c @@ -117,7 +117,7 @@ cpuworker_consensus_has_changed(const networkstatus_t *ns) * during Tor's lifetime. */ void -cpu_init(void) +cpuworker_init(void) { if (!replyqueue) { replyqueue = replyqueue_new(0); |