From 28ef3ef027b2f99b68aceaeb51379f8fe4721dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD=E7=8C=BF?= <1083092844@qq.com> Date: Sat, 5 Nov 2022 20:29:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=94=AE=E9=80=80=E5=87=BA=E7=9A=84bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BarrageGrab/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BarrageGrab/Program.cs b/BarrageGrab/Program.cs index b46402f..cb07fc7 100644 --- a/BarrageGrab/Program.cs +++ b/BarrageGrab/Program.cs @@ -24,12 +24,12 @@ namespace BarrageGrab var input = Console.ReadKey(); switch (input.Key) { - case ConsoleKey.Escape: goto end; + case ConsoleKey.Escape: goto end; break; } } end: - Console.ReadKey(); + server.Close(); Console.WriteLine("服务器已正常关闭,按任意键结束..."); Console.ReadKey(); }