Skip routing rule check if current agent is empty.
This commit is contained in:
parent
ed860f3631
commit
3a28a72f6c
|
|
@ -106,6 +106,11 @@ public class RoutingContext : IRoutingContext
|
|||
await hook.OnAgentDequeued(agentId, currentAgentId, reason: reason)
|
||||
).Wait();
|
||||
|
||||
if (string.IsNullOrEmpty(currentAgentId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Run the routing rule
|
||||
var agency = _services.GetRequiredService<IAgentService>();
|
||||
var agent = agency.LoadAgent(currentAgentId).Result;
|
||||
|
|
|
|||
Loading…
Reference in a new issue