VOL-3049 Alarm sync and audit
Change-Id: If1e8993fbf8c1a7c05cc62180ab7847416a0f23d
diff --git a/internal/pkg/onuadaptercore/device_handler.go b/internal/pkg/onuadaptercore/device_handler.go
index 3422c43..b8eb2fa 100644
--- a/internal/pkg/onuadaptercore/device_handler.go
+++ b/internal/pkg/onuadaptercore/device_handler.go
@@ -3163,7 +3163,8 @@
dh.setAlarmManagerIsRunning(true)
if stop := <-dh.stopAlarmManager; stop {
logger.Debugw(ctx, "stopping-collector-for-onu", log.Fields{"device-id": dh.device.Id})
- dh.pAlarmMgr.stopProcessingOmciMessages <- true // Stop the OMCI routines if any
+ dh.pAlarmMgr.stopAlarmAuditTimer <- struct{}{}
+ dh.pAlarmMgr.stopProcessingOmciMessages <- true // Stop the OMCI routines if any(This will stop the fsms also)
dh.setAlarmManagerIsRunning(false)
}