From 8fd366a8eb57fcc2bbd814a570d4988108d5dab2 Mon Sep 17 00:00:00 2001 From: ZYT <2300409876@qq.com> Date: Thu, 12 Feb 2026 10:24:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9HttpServer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/HttpServer.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Assets/Scripts/HttpServer.cs b/Assets/Scripts/HttpServer.cs index 0a628885..41ee1c8f 100644 --- a/Assets/Scripts/HttpServer.cs +++ b/Assets/Scripts/HttpServer.cs @@ -61,11 +61,7 @@ public class HttpServer : MonoBehaviour listener.Start(); isRunning = true; - serverThread = new Thread(ListenLoop) - { - IsBackground = true - }; - serverThread.Start(); + ListenLoop(); Debug.Log($"✅ HTTP Server 启动成功:{SERVER_URL}"); }