diff --git a/queue/queue_call_inbound.go b/queue/queue_call_inbound.go index 4f2edbd7..70eefd18 100644 --- a/queue/queue_call_inbound.go +++ b/queue/queue_call_inbound.go @@ -144,7 +144,7 @@ func (queue *InboundQueue) run(attempt *Attempt, mCall call_manager.Call) { wlog.Debug(fmt.Sprintf("call [%s] && agent [%s]", mCall.Id(), agentCall.Id())) top: - for agentCall.HangupCause() == "" && (mCall.HangupCause() == "") { + for calling && agentCall.HangupCause() == "" && (mCall.HangupCause() == "") { select { case <-attempt.Cancel(): calling = false