From 19e18f7e20ecb5ee0c037def81b422cddcd40ffb Mon Sep 17 00:00:00 2001 From: Trial97 Date: Thu, 22 Jul 2021 11:21:00 +0300 Subject: [PATCH] Updated treshold handling in resources --- engine/resources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/resources.go b/engine/resources.go index 189a7c765..c2fc22526 100644 --- a/engine/resources.go +++ b/engine/resources.go @@ -531,7 +531,7 @@ func (rS *ResourceService) processThresholds(rs Resources, argDispatcher *utils. var tIDs []string if err := rS.connMgr.Call(rS.cgrcfg.ResourceSCfg().ThresholdSConns, nil, utils.ThresholdSv1ProcessEvent, thEv, &tIDs); err != nil && - err.Error() != utils.ErrNotFound.Error() { + (len(thIDs) != 0 || err.Error() != utils.ErrNotFound.Error()) { utils.Logger.Warning( fmt.Sprintf("<%s> error: %s processing event %+v with %s.", utils.ResourceS, err.Error(), thEv, utils.ThresholdS))