[Net] Make StreamPeerTCP::_poll_connection explicit.
No longer hacked into `get_status` and renamed to `poll`. The old `poll` (for *nix `poll`, win `select`) is now called `wait`.
This commit is contained in:
@ -264,6 +264,9 @@ void HTTPClientTCP::close() {
|
||||
}
|
||||
|
||||
Error HTTPClientTCP::poll() {
|
||||
if (tcp_connection.is_valid()) {
|
||||
tcp_connection->poll();
|
||||
}
|
||||
switch (status) {
|
||||
case STATUS_RESOLVING: {
|
||||
ERR_FAIL_COND_V(resolving == IP::RESOLVER_INVALID_ID, ERR_BUG);
|
||||
|
||||
Reference in New Issue
Block a user