summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamian Day <damianday@users.noreply.github.com>2019-09-21 02:18:46 +0100
committerGitHub <noreply@github.com>2019-09-21 02:18:46 +0100
commit748c9bc20505ff95e238ad2c367b6d99b7473437 (patch)
treee54c6f1a00302e96a04190add1a379fc45d0f552
parent2e065d8ad07bb20fede0d0c0b2d33d6628033024 (diff)
TCP is_connected_to_host comparison error
We was returning true when the state was not connected, so we would never return true when the state was connected.
-rw-r--r--core/io/stream_peer_tcp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/stream_peer_tcp.cpp b/core/io/stream_peer_tcp.cpp
index 310bb12bc0..7d22176250 100644
--- a/core/io/stream_peer_tcp.cpp
+++ b/core/io/stream_peer_tcp.cpp
@@ -253,7 +253,7 @@ bool StreamPeerTCP::is_connected_to_host() const {
return false;
}
- if (status != STATUS_CONNECTED) {
+ if (status == STATUS_CONNECTED) {
return true;
}