mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 15:10:44 -05:00
Fixed recursion when using GetData syncronously (!161)
Running [SPT.Common.Http.RequestHandler.GetData()](af1a83fe71/project/SPT.Common/Http/RequestHandler.cs (L78)
) would run indefinitely because of an accidental recursion.
Reviewed-on: SPT/Modules#161
Co-authored-by: Kaiden <kaiden@pm.me>
Co-committed-by: Kaiden <kaiden@pm.me>
This commit is contained in:
parent
af1a83fe71
commit
ab9d9c0e13
@ -75,7 +75,7 @@ namespace SPT.Common.Http
|
||||
|
||||
public static byte[] GetData(string path)
|
||||
{
|
||||
return Task.Run(() => GetData(path)).Result;
|
||||
return Task.Run(() => GetDataAsync(path)).Result;
|
||||
}
|
||||
|
||||
public static async Task<string> GetJsonAsync(string path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user