From 9ecd90fb124cc0354c3c8e6277891c8d9ac14a61 Mon Sep 17 00:00:00 2001 From: "i.navrotskyj" Date: Thu, 13 Jun 2024 12:50:14 +0300 Subject: [PATCH] DEV-4207 --- queue/chat_inbound.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/queue/chat_inbound.go b/queue/chat_inbound.go index 89cb04ef..2a67ceb7 100644 --- a/queue/chat_inbound.go +++ b/queue/chat_inbound.go @@ -103,8 +103,13 @@ func (queue *InboundChatQueue) process(attempt *Attempt, inviterId, invUserId st conv, err = queue.ChatManager().NewConversation(queue.domainId, *attempt.MemberCallId(), inviterId, invUserId, model.UnionStringMaps(attempt.ExportVariables(), queue.variables)) if err != nil { - //FIXME attempt.Log(err.Error()) + queue.queueManager.Abandoned(attempt) + go func() { + attempt.Emit(AttemptHookLeaving) + attempt.Off("*") + }() + return } loop := conv.Active()