mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-01 13:02:02 +00:00
Fixes async HTTP for getting pins (#8073)
A few issues:
Async response enums were bad.
Async requests didn't handle an unforeseen error properly.
Get pins were sending an input which would cause a crash of the DLL. (DLL is now fixed to not crash due to this.)
This commit is contained in:
@@ -61,7 +61,12 @@ var/datum/controller/subsystem/http/SShttp
|
||||
crash_with("Attempted to re-use a request object.")
|
||||
|
||||
id = rustg_http_request_async(method, url, body, headers)
|
||||
in_progress = TRUE
|
||||
|
||||
if (isnull(text2num(id)))
|
||||
crash_with("Proc error: [id]")
|
||||
_raw_response = "Proc error: [id]"
|
||||
else
|
||||
in_progress = TRUE
|
||||
|
||||
/datum/http_request/proc/is_complete()
|
||||
if (isnull(id))
|
||||
|
||||
Reference in New Issue
Block a user