Skip to content

Commit 45553e1

Browse files
committed
refactor: Make ThreadHTTP return void
The `bool` return value was introduced in 755aa05. It has been not used since 8d3f46e. No behavior change.
1 parent b4fb0a3 commit 45553e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/httpserver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,14 @@ static void http_reject_request_cb(struct evhttp_request* req, void*)
279279
}
280280

281281
/** Event dispatcher thread */
282-
static bool ThreadHTTP(struct event_base* base)
282+
static void ThreadHTTP(struct event_base* base)
283283
{
284284
util::ThreadRename("http");
285285
SetSyscallSandboxPolicy(SyscallSandboxPolicy::NET_HTTP_SERVER);
286286
LogPrint(BCLog::HTTP, "Entering http event loop\n");
287287
event_base_dispatch(base);
288288
// Event loop will be interrupted by InterruptHTTPServer()
289289
LogPrint(BCLog::HTTP, "Exited http event loop\n");
290-
return event_base_got_break(base) == 0;
291290
}
292291

293292
/** Bind HTTP server to specified addresses */

0 commit comments

Comments
 (0)