aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-01-05 17:54:08 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-01-05 17:54:08 +0000
commit45553e11c965db218733f9ad32ecde391b393443 (patch)
tree2dd601f9f6d2ef1f1968b6bf7b4f12d13b938b39 /src/httpserver.cpp
parentb4fb0a3255d39d7acf334d09b675885462e31c60 (diff)
downloadbitcoin-45553e11c965db218733f9ad32ecde391b393443.tar.xz
refactor: Make `ThreadHTTP` return void
The `bool` return value was introduced in 755aa05174e06effd758eeb78c5af9fb465e9611. It has been not used since 8d3f46ec3938e2ba17654fecacd1d2629f9915fd. No behavior change.
Diffstat (limited to 'src/httpserver.cpp')
-rw-r--r--src/httpserver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp
index 6597ed71af..720f5c9353 100644
--- a/src/httpserver.cpp
+++ b/src/httpserver.cpp
@@ -279,7 +279,7 @@ static void http_reject_request_cb(struct evhttp_request* req, void*)
}
/** Event dispatcher thread */
-static bool ThreadHTTP(struct event_base* base)
+static void ThreadHTTP(struct event_base* base)
{
util::ThreadRename("http");
SetSyscallSandboxPolicy(SyscallSandboxPolicy::NET_HTTP_SERVER);
@@ -287,7 +287,6 @@ static bool ThreadHTTP(struct event_base* base)
event_base_dispatch(base);
// Event loop will be interrupted by InterruptHTTPServer()
LogPrint(BCLog::HTTP, "Exited http event loop\n");
- return event_base_got_break(base) == 0;
}
/** Bind HTTP server to specified addresses */