From 70c42b579f70c90ab5461a02e611c0fbd8d8a6f2 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sat, 25 Apr 2026 13:11:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(scene):=20=E4=BF=AE=E5=A4=8D=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E6=9B=BF=E6=8D=A2=E6=A0=B8=E5=BF=83=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E7=9A=84=E9=85=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 ConfigureAwait 参数从 false 修改为 true - 确保异步操作在正确的上下文中继续执行 - 避免潜在的死锁或性能问题 --- GFramework.Game/Scene/SceneRouterBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GFramework.Game/Scene/SceneRouterBase.cs b/GFramework.Game/Scene/SceneRouterBase.cs index c09fd66a..eb7ce1a5 100644 --- a/GFramework.Game/Scene/SceneRouterBase.cs +++ b/GFramework.Game/Scene/SceneRouterBase.cs @@ -91,7 +91,7 @@ public abstract class SceneRouterBase await _pipeline.ExecuteAroundAsync( @event, - () => ExecuteReplaceCoreAsync(@event, sceneKey, param)).ConfigureAwait(false); + () => ExecuteReplaceCoreAsync(@event, sceneKey, param)).ConfigureAwait(true); } finally {