VOL-5298:OpenOnuAdapterGo: Panic during scale tests if large number of ONTS flap during ACTIVATION

[VOL-5331] -  Sanity E2E Test for OLT/ONU on POD for DT :: Validates E2E Ping Co... | FAIL |

Change-Id: I369de3b525c4e0db4dbf1527494320826bd0f7de
Signed-off-by: PRANEETH NALMAS <praneeth.nalmas@radisys.com>
diff --git a/internal/pkg/mib/mib_download.go b/internal/pkg/mib/mib_download.go
index ea1ce40..921043a 100755
--- a/internal/pkg/mib/mib_download.go
+++ b/internal/pkg/mib/mib_download.go
@@ -405,5 +405,9 @@
 		// should not happen so far
 		logger.Warnw(ctx, "MibDownload-bridge-init response error", log.Fields{"for device-id": onuDeviceEntry.deviceID})
 		return fmt.Errorf("mibDownloadBridgeInit responseError %s", onuDeviceEntry.deviceID)
+	case <-onuDeviceEntry.baseDeviceHandler.GetDeviceDeleteCommChan(ctx):
+		logger.Warnw(ctx, "Deleting device, do not wait for OMCI response", log.Fields{"device-id": onuDeviceEntry.deviceID})
+		return fmt.Errorf("mibDownloadBridgeInit device deletion in progress! %s", onuDeviceEntry.deviceID)
+
 	}
 }