mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 04:34:39 +00:00
[Net] Drop is_connected_to_host for TCP and UDP.
The UDP method is now called `is_socket_connected` to limit confusion with the actual host connection status which doesn't make sense in UDP. The TCP method is completly dropped, use get_status instead. The only one left is the WebSocketPeer one, which should be fine as is for now.
This commit is contained in:
parent
0e52867668
commit
331f1662df
8 changed files with 8 additions and 20 deletions
|
|
@ -337,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