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
|
@ -253,7 +253,7 @@ bool StreamPeerTCP::is_connected_to_host() const {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (status != STATUS_CONNECTED) {
|
||||
if (status == STATUS_CONNECTED) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue