fixed token being checked every second instead of every hour
This commit is contained in:
parent
5f13ecae34
commit
1f1ad16e6f
@ -294,7 +294,7 @@ func is_token_valid(token : String) -> String:
|
||||
return ""
|
||||
|
||||
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"])) == ""):
|
||||
user_token_invalid.emit()
|
||||
return
|
||||
|
@ -3,5 +3,5 @@
|
||||
name="Godot IRC For Twitch"
|
||||
description="Godot websocket implementation for Twitch IRC."
|
||||
author="issork"
|
||||
version="3.0.0"
|
||||
version="3.0.1"
|
||||
script="gift.gd"
|
||||
|
Loading…
x
Reference in New Issue
Block a user