diff --git a/client/scenes/main.gd b/client/scenes/main.gd index b64a980..cc70051 100644 --- a/client/scenes/main.gd +++ b/client/scenes/main.gd @@ -32,7 +32,10 @@ func connect_to_host(): print("Connect to : " + listen_ip + " : " + str(listen_port)) dataEnet = enet.connect_to_host(listen_ip, listen_port, 10) print(dataEnet) - if not dataEnet.is_active(): + if not dataEnet: + print("ERROR dataEnet == null: ") + return + elif not dataEnet.is_active(): print("ERROR enet.connect_to_host: ", dataEnet.is_active()) return