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.
This commit is contained in:
Damian Day 2019-09-21 02:18:46 +01:00 committed by GitHub
parent 2e065d8ad0
commit 748c9bc205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ bool StreamPeerTCP::is_connected_to_host() const {
return false;
}
if (status != STATUS_CONNECTED) {
if (status == STATUS_CONNECTED) {
return true;
}