mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
clone CGREvent when exportEventWithExporter is send asynchronusly
This commit is contained in:
committed by
Dan Christian Bogos
parent
fd156c4838
commit
9e60ab8236
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user