From 97757cd1d1b6b3702a47c6f28c200010cee335e4 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 28 Aug 2018 12:32:04 +0200 Subject: Fix DNS resolution when cache is invalid. Fix StreamPeerTCP.connect_to_host return value. --- core/io/stream_peer_tcp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/io/stream_peer_tcp.cpp') diff --git a/core/io/stream_peer_tcp.cpp b/core/io/stream_peer_tcp.cpp index 5d008904ff..54ebb3ae0d 100644 --- a/core/io/stream_peer_tcp.cpp +++ b/core/io/stream_peer_tcp.cpp @@ -43,8 +43,7 @@ Error StreamPeerTCP::_connect(const String &p_address, int p_port) { return ERR_CANT_RESOLVE; } - connect_to_host(ip, p_port); - return OK; + return connect_to_host(ip, p_port); } void StreamPeerTCP::_bind_methods() { -- cgit v1.2.3