1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Update stream_peer_tcp.cpp

This commit is contained in:
Damian Day
2019-09-25 23:45:32 +01:00
committed by GitHub
parent 748c9bc205
commit 5631850152

View File

@@ -248,16 +248,7 @@ void StreamPeerTCP::set_no_delay(bool p_enabled) {
bool StreamPeerTCP::is_connected_to_host() const {
if (status == STATUS_NONE || status == STATUS_ERROR) {
return false;
}
if (status == STATUS_CONNECTED) {
return true;
}
return _sock.is_valid() && _sock->is_open();
return _sock.is_valid() && _sock->is_open() && (status == STATUS_CONNECTED || status == STATUS_CONNECTING);
}
StreamPeerTCP::Status StreamPeerTCP::get_status() {