[VOL-5566] - fix race condition in heartbeat routine during OLT reboot
Change-Id: I7b6ee90ec4118170969c85b0f826dcec5f04597c
Signed-off-by: Sridhar Ravindra <sridhar.ravindra@radisys.com>
diff --git a/internal/pkg/core/device_handler.go b/internal/pkg/core/device_handler.go
index 1cca3ad..00b339d 100755
--- a/internal/pkg/core/device_handler.go
+++ b/internal/pkg/core/device_handler.go
@@ -3043,7 +3043,7 @@
dh.lockDevice.RUnlock()
} else {
logger.Warn(ctx, "Heartbeat signature changed, OLT is rebooted. Cleaningup resources.")
- dh.updateStateRebooted(ctx)
+ go dh.updateStateRebooted(ctx)
dh.updateHeartbeatSignature(ctx, heartBeat.HeartbeatSignature)
dh.heartbeatSignature = heartBeat.HeartbeatSignature
}