mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Const correct Thread class (#15741)
This commit is contained in:
parent
9166b57c2a
commit
045951b23c
3 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue