update client to ignore is network didn't work

This commit is contained in:
AleaJactaEst 2023-10-25 22:34:36 +02:00
parent 85b92e7871
commit efbdb34abd

View file

@ -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