From cb55e15c5255575d34e27bfce64e6adfd16a6250 Mon Sep 17 00:00:00 2001 From: smartwyy <645583145@qq.com> Date: Mon, 27 May 2024 15:59:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=BC=80=E8=B0=83=E8=AF=95=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HybirdFrameworkDriver/TcpServer/TcpServer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HybirdFrameworkDriver/TcpServer/TcpServer.cs b/HybirdFrameworkDriver/TcpServer/TcpServer.cs index bb5096d..1da7a28 100644 --- a/HybirdFrameworkDriver/TcpServer/TcpServer.cs +++ b/HybirdFrameworkDriver/TcpServer/TcpServer.cs @@ -35,7 +35,7 @@ public class TcpServer : IDisposable where TH : IChannelHandler public Action? ChannelInActiveAction { get; set; } - public TcpServer() + public void InitBootstrap() { if (LogLevel != null) @@ -131,6 +131,7 @@ public class TcpServer : IDisposable where TH : IChannelHandler { _port = port; Log.Info(" Start Listen"); + InitBootstrap(); Task? channel = bootstrap?.BindAsync(_port); Log.Info($"netty success listen {_port}"); }