summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}