Merge pull request #59582 from Faless/net/4.x_tcp_explicit_poll
This commit is contained in:
commit
6e6fe2b025
10 changed files with 51 additions and 75 deletions
|
|
@ -273,6 +273,7 @@ void WSLClient::poll() {
|
|||
return; // Not connected.
|
||||
}
|
||||
|
||||
_tcp->poll();
|
||||
switch (_tcp->get_status()) {
|
||||
case StreamPeerTCP::STATUS_NONE:
|
||||
// Clean close
|
||||
|
|
@ -336,7 +337,7 @@ MultiplayerPeer::ConnectionStatus WSLClient::get_connection_status() const {
|
|||
return CONNECTION_CONNECTED;
|
||||
}
|
||||
|
||||
if (_tcp->is_connected_to_host() || _resolver_id != IP::RESOLVER_INVALID_ID) {
|
||||
if (_tcp->get_status() == StreamPeerTCP::STATUS_CONNECTING || _resolver_id != IP::RESOLVER_INVALID_ID) {
|
||||
return CONNECTION_CONNECTING;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue