Skip to content

Commit

Permalink
fixed websocket timeout during menu scene
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesuaheli committed Jun 29, 2024
1 parent 486fa01 commit fdd3f2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/api.gd
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ func _ready():
print("api loaded")

func _process(_delta: float):
if got_ws_message:
var msg: Dictionary = read_from_ws()
if len(msg) > 0:
var msg: Dictionary = read_from_ws()
if got_ws_message&&len(msg) > 0:
got_ws_message.call(msg)

## category gets the available categories from the server.
Expand Down

0 comments on commit fdd3f2f

Please sign in to comment.