You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #59582 from Faless/net/4.x_tcp_explicit_poll
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user