From 081417f9cf271029e374c71d5c845dc3dc0d0c4a Mon Sep 17 00:00:00 2001 From: Andrey Tvorozhkov Date: Tue, 10 Sep 2024 00:29:23 +0300 Subject: [PATCH] Fix --- adnl/adnl-ext-server.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/adnl/adnl-ext-server.cpp b/adnl/adnl-ext-server.cpp index 53351dd29..46e956243 100644 --- a/adnl/adnl-ext-server.cpp +++ b/adnl/adnl-ext-server.cpp @@ -174,12 +174,11 @@ void AdnlExtServerImpl::accepted(td::SocketFd fd) { fd.close(); } else { LOG(INFO) << "Accept from: " << addr << " connections: " << connection_count; + td::actor::create_actor(td::actor::ActorOptions().with_name("inconn").with_poll(), + std::move(fd), peer_table_, actor_id(this)) + .release(); } } - - td::actor::create_actor(td::actor::ActorOptions().with_name("inconn").with_poll(), - std::move(fd), peer_table_, actor_id(this)) - .release(); } void AdnlExtServerImpl::decrypt_init_packet(AdnlNodeIdShort dst, td::BufferSlice data,