Updated NoTwitch's Twitch_Connection.HTTPResponse

This commit is contained in:
Eroax 2024-01-22 20:03:45 -07:00
parent 1fb7c94c88
commit 1b5f5279fb

View file

@ -279,6 +279,9 @@ class HTTPResponse:
signal response_received signal response_received
## The infuriatingly needed data variable. Because you can't await AND get signal data.
var inf_data
func _init(http : HTTPRequest, storage : Array): func _init(http : HTTPRequest, storage : Array):
storage.append(self) storage.append(self)
@ -297,6 +300,7 @@ class HTTPResponse:
info = info.data[0] info = info.data[0]
print("Response Received") print("Response Received")
inf_data = info
response_received.emit(info) response_received.emit(info)
http.queue_free() http.queue_free()