fixed token being checked every second instead of every hour

This commit is contained in:
Max Kross 2023-02-18 23:30:47 +01:00
parent 5f13ecae34
commit 1f1ad16e6f
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ func is_token_valid(token : String) -> String:
return "" return ""
func refresh_token() -> void: func refresh_token() -> void:
await(get_tree().create_timer(3600)) await(get_tree().create_timer(3600).timeout)
if (await(is_token_valid(token["access_token"])) == ""): if (await(is_token_valid(token["access_token"])) == ""):
user_token_invalid.emit() user_token_invalid.emit()
return return

View File

@ -3,5 +3,5 @@
name="Godot IRC For Twitch" name="Godot IRC For Twitch"
description="Godot websocket implementation for Twitch IRC." description="Godot websocket implementation for Twitch IRC."
author="issork" author="issork"
version="3.0.0" version="3.0.1"
script="gift.gd" script="gift.gd"