userlibandfileserver/fileserver/shostmassstorage/server/controller/cusbhostmsdevice.cpp
branchRCL_3
changeset 268 345b1ca54e88
parent 110 c734af59ce98
child 294 039a3e647356
child 297 b2826f67641f
--- a/userlibandfileserver/fileserver/shostmassstorage/server/controller/cusbhostmsdevice.cpp	Tue Sep 14 23:56:21 2010 +0300
+++ b/userlibandfileserver/fileserver/shostmassstorage/server/controller/cusbhostmsdevice.cpp	Wed Sep 15 13:42:27 2010 +0300
@@ -160,7 +160,12 @@
 void CUsbHostMsDevice::SuspendLunL(TLun aLun)
 	{
     __MSFNLOG
-	iLuList.GetLuL(aLun).ReadyToSuspend();
+    if (IsSuspended())
+        {
+        return;
+        }
+
+    iLuList.GetLuL(aLun).ReadyToSuspend();
 
     // check whether all the luns are suspended, if so then request usb
     // interface suspension to the transport layer