mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
FIX: Return if TCP is in STATUS_CONNECTED
If the `StreamPeerTCP` is polled and the TCP connection is `STATUS_CONNECTED` it should return after polling netsocket. Without `return` poll keeps calling `_sock->connect_to_host` and `connect()`.
(cherry picked from commit 61a2f5c534
)
This commit is contained in:
parent
bb5ea0d249
commit
943b394946
@ -217,6 +217,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Fix NavigationObstacle elevation ([GH-84830](https://github.com/godotengine/godot/pull/84830)).
|
||||
- Fix NavigationObstacle height ([GH-84857](https://github.com/godotengine/godot/pull/84857)).
|
||||
|
||||
#### Networking
|
||||
|
||||
- Fix missing return in `StreamPeerTCP::poll` when connection is `STATUS_CONNECTED` ([GH-90741](https://github.com/godotengine/godot/pull/90741)).
|
||||
|
||||
#### Particles
|
||||
|
||||
- Fix several Material texture parameter updates ([GH-84303](https://github.com/godotengine/godot/pull/84303)).
|
||||
|
@ -51,6 +51,7 @@ Error StreamPeerTCP::poll() {
|
||||
status = STATUS_ERROR;
|
||||
return err;
|
||||
}
|
||||
return OK;
|
||||
} else if (status != STATUS_CONNECTING) {
|
||||
return OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user