Skip to content

Commit 7c64db3

Browse files
committed
Return ERR_BUSY when in use
1 parent 5985a2b commit 7c64db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/awaitable_http_request/awaitable_http_request.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ var is_requesting := false ## Whether the node is busy performing a request. Th
2626
## [/codeblock]
2727
func async_request(url: String, custom_headers := PackedStringArray(), method := HTTPClient.Method.METHOD_GET, request_data := "") -> HTTPResult:
2828
if is_requesting:
29-
push_error("AwaitableHTTPRequest is busy performing a request.")
30-
return
29+
push_warning("AwaitableHTTPRequest is busy performing a request.")
30+
return HTTPResult._from_error(Error.ERR_BUSY)
3131

3232
is_requesting = true
3333

0 commit comments

Comments
 (0)