按键退出的bug

This commit is contained in:
小白猿
2022-11-05 20:29:21 +08:00
parent 5fd936836c
commit 28ef3ef027
+2 -2
View File
@@ -24,12 +24,12 @@ namespace BarrageGrab
var input = Console.ReadKey(); var input = Console.ReadKey();
switch (input.Key) switch (input.Key)
{ {
case ConsoleKey.Escape: goto end; case ConsoleKey.Escape: goto end; break;
} }
} }
end: end:
Console.ReadKey(); server.Close();
Console.WriteLine("服务器已正常关闭,按任意键结束..."); Console.WriteLine("服务器已正常关闭,按任意键结束...");
Console.ReadKey(); Console.ReadKey();
} }