summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-05-04 20:08:11 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-05-04 20:13:32 +0200
commite5137fafbe44a0feac5cf29a84469c11f72df4f1 (patch)
treed3aa960812582a8a1affaf8c257b4b9170ad7b4e /core
parent84f64ddde956f5ecba4674750442df89b75556c9 (diff)
[Net] Fix StreamPeerTCP accepted status.
Diffstat (limited to 'core')
-rw-r--r--core/io/stream_peer_tcp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/stream_peer_tcp.cpp b/core/io/stream_peer_tcp.cpp
index c5c2021e6e..ba79590c19 100644
--- a/core/io/stream_peer_tcp.cpp
+++ b/core/io/stream_peer_tcp.cpp
@@ -81,7 +81,7 @@ void StreamPeerTCP::accept_socket(Ref<NetSocket> p_sock, IPAddress p_host, uint1
_sock->set_blocking_enabled(false);
timeout = OS::get_singleton()->get_ticks_msec() + (((uint64_t)GLOBAL_GET("network/limits/tcp/connect_timeout_seconds")) * 1000);
- status = STATUS_CONNECTING;
+ status = STATUS_CONNECTED;
peer_host = p_host;
peer_port = p_port;