[VOL-3980] crash at ONU soft-reboot in deleteGemPort processing
Signed-off-by: mpagenko <michael.pagenkopf@adtran.com>
Change-Id: I73903264709a36d37d8795f08f74a9d051bd2efa
diff --git a/internal/pkg/onuadaptercore/device_handler.go b/internal/pkg/onuadaptercore/device_handler.go
index 817a147..b9b8504 100644
--- a/internal/pkg/onuadaptercore/device_handler.go
+++ b/internal/pkg/onuadaptercore/device_handler.go
@@ -1688,7 +1688,7 @@
// FSM stop maybe encapsulated as OnuTP method - perhaps later in context of module splitting
if dh.pOnuTP.pAniConfigFsm != nil {
for uniTP := range dh.pOnuTP.pAniConfigFsm {
- dh.pOnuTP.pAniConfigFsm[uniTP].CancelProcessing()
+ dh.pOnuTP.pAniConfigFsm[uniTP].CancelProcessing(ctx)
}
}
for _, uniPort := range dh.uniEntityMap {
@@ -1701,7 +1701,7 @@
// no need to remove specific data
pVlanFilterFsm.RequestClearPersistency(false)
//ensure the FSM processing is stopped in case waiting for some response
- pVlanFilterFsm.CancelProcessing()
+ pVlanFilterFsm.CancelProcessing(ctx)
} else {
dh.lockVlanConfig.RUnlock()
}