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:
Erki
2020-01-23 21:19:01 +02:00
committed by GitHub
parent 0ef2c83f45
commit 63bf0030f6
4 changed files with 13 additions and 6 deletions

View File

@@ -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))