Avoid stale omci_cc send processing due to concurrent channel write (correction sporadic ONU-soft-reboot issues)
Signed-off-by: mpagenko <michael.pagenkopf@adtran.com>
Change-Id: If6161eeda68d60ab802ab95d2d724700c9baa02f
diff --git a/internal/pkg/onuadaptercore/device_handler.go b/internal/pkg/onuadaptercore/device_handler.go
index 59d3236..00cc09b 100644
--- a/internal/pkg/onuadaptercore/device_handler.go
+++ b/internal/pkg/onuadaptercore/device_handler.go
@@ -1981,7 +1981,7 @@
return fmt.Errorf("no valid OnuDevice: %s", dh.deviceID)
}
if pDevEntry.PDevOmciCC != nil {
- pDevEntry.PDevOmciCC.CancelRequestMonitoring()
+ pDevEntry.PDevOmciCC.CancelRequestMonitoring(ctx)
}
pDevEntry.mutexOnuImageStatus.RLock()
if pDevEntry.pOnuImageStatus != nil {