diff --git a/GFramework.Game/Routing/RouterBase.cs b/GFramework.Game/Routing/RouterBase.cs index 1f731505..3fe43f54 100644 --- a/GFramework.Game/Routing/RouterBase.cs +++ b/GFramework.Game/Routing/RouterBase.cs @@ -140,7 +140,7 @@ public abstract class RouterBase : AbstractSystem try { Log.Debug("Executing enter guard: {0} for {1}", guard.GetType().Name, routeKey); - var canEnter = await guard.CanEnterAsync(routeKey, context); + var canEnter = await guard.CanEnterAsync(routeKey, context).ConfigureAwait(false); if (!canEnter) { @@ -182,7 +182,7 @@ public abstract class RouterBase : AbstractSystem try { Log.Debug("Executing leave guard: {0} for {1}", guard.GetType().Name, routeKey); - var canLeave = await guard.CanLeaveAsync(routeKey); + var canLeave = await guard.CanLeaveAsync(routeKey).ConfigureAwait(false); if (!canLeave) { @@ -241,4 +241,4 @@ public abstract class RouterBase : AbstractSystem } #endregion -} \ No newline at end of file +}