clone CGREvent when exportEventWithExporter is send asynchronusly

This commit is contained in:
gezimbll
2024-11-08 14:40:20 +01:00
committed by Dan Christian Bogos
parent fd156c4838
commit 9e60ab8236

View File

@@ -190,6 +190,9 @@ func (eeS *EventExporterS) V1ProcessEvent(ctx *context.Context, cgrEv *engine.CG
}
exportEvent := cgrEv.CGREvent
if !eeCfg.Synchronous {
exportEvent = exportEvent.Clone()
}
if eeCfg.Flags.GetBool(utils.MetaAttributes) {
if exportEvent, err = eeS.attrSProcessEvent(
cgrEv.CGREvent,