Fix remote images not fetching

because the signal never fires unless the remote
node is being threaded
This commit is contained in:
2023-06-01 19:53:04 +02:00
parent 5e732aa49f
commit 060f44f57e
2 changed files with 3 additions and 2 deletions

View File

@@ -4,9 +4,9 @@ var socket = WebSocketPeer.new()
func InitWebsocket():
print("Connecting websocket ")
var i = 0
socket.connect_to_url($"/root/Main".websocket_url, TLSOptions.client_unsafe())
while socket.get_ready_state() != WebSocketPeer.STATE_OPEN:
socket.connect_to_url($"/root/Main".websocket_url, TLSOptions.client_unsafe())
socket.poll()