summaryrefslogtreecommitdiff
path: root/modules/websocket
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-27 13:56:58 +0200
committerGitHub <noreply@github.com>2022-04-27 13:56:58 +0200
commit6e6fe2b025cf2d2e6ecbc2d536a6ed614f6486c6 (patch)
tree5347db9b0a50bb4a39d453ca46eefc9eea12f180 /modules/websocket
parent17374944796a9338a2225473c9af693b4b578e18 (diff)
parent331f1662df41b4e7afff30d2fe4019a413499c1c (diff)
Merge pull request #59582 from Faless/net/4.x_tcp_explicit_poll
Diffstat (limited to 'modules/websocket')
-rw-r--r--modules/websocket/wsl_client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/websocket/wsl_client.cpp b/modules/websocket/wsl_client.cpp
index 1ef571b6ee..58c329f043 100644
--- a/modules/websocket/wsl_client.cpp
+++ b/modules/websocket/wsl_client.cpp
@@ -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;
}