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:
parent
2e065d8ad0
commit
748c9bc205
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ bool StreamPeerTCP::is_connected_to_host() const {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (status != STATUS_CONNECTED) {
|
||||
if (status == STATUS_CONNECTED) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue