1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Const correct Thread class (#15741)

This commit is contained in:
wrrrzr
2025-02-09 14:20:47 +03:00
committed by GitHub
parent 9166b57c2a
commit 045951b23c
3 changed files with 8 additions and 8 deletions

View File

@@ -744,7 +744,7 @@ static void httpfetch_request_clear(u64 caller)
bool httpfetch_sync_interruptible(const HTTPFetchRequest &fetch_request,
HTTPFetchResult &fetch_result, long interval)
{
if (Thread *thread = Thread::getCurrentThread()) {
if (const Thread *thread = Thread::getCurrentThread()) {
HTTPFetchRequest req = fetch_request;
req.caller = httpfetch_caller_alloc_secure();
httpfetch_async(req);