[VOL-5184]preventing childDevice lost

Change-Id: I2fd962ca26078b6182c92bcef5f73e626d42a650
Signed-off-by: Nandita Biradar <nbirada@radisys.com>
diff --git a/VERSION b/VERSION
index fc957cc..424e179 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.6.7-dev2
+3.6.8
diff --git a/rw_core/core/device/agent.go b/rw_core/core/device/agent.go
index ef358f7..c6afce5 100755
--- a/rw_core/core/device/agent.go
+++ b/rw_core/core/device/agent.go
@@ -1120,7 +1120,10 @@
 			portHandle.Unlock()
 		}
 	}
-
+	if err = agent.deviceMgr.canAdapterRequestProceed(ctx, agent.deviceID); err != nil {
+		logger.Errorw(ctx, "adapter-request-cannot-proceed", log.Fields{"device-id": agent.deviceID, "error": err})
+		return err
+	}
 	//send request to adapter
 	client, err := agent.adapterMgr.GetAdapterClient(ctx, agent.adapterEndpoint)
 	if err != nil {