diff --git a/graph_node_renderer/twitch_setup_dialog.gd b/graph_node_renderer/twitch_setup_dialog.gd index 7091404..b092cb8 100644 --- a/graph_node_renderer/twitch_setup_dialog.gd +++ b/graph_node_renderer/twitch_setup_dialog.gd @@ -42,7 +42,7 @@ func copy_auth_link(): func connect_to_chat(): - if Connections.twitch.chat_socket.get_ready_state() != WebSocketPeer.STATE_OPEN: + if !Connections.twitch.get("chat_socket") or Connections.twitch.chat_socket.get_ready_state() != WebSocketPeer.STATE_OPEN: Connections.twitch.setup_chat_connection(%Default_Chat.text)