userlibandfileserver/fileserver/shostmassstorage/server/controller/cusbhostmsdevice.cpp
branchRCL_3
changeset 268 345b1ca54e88
parent 110 c734af59ce98
child 294 039a3e647356
child 297 b2826f67641f
equal deleted inserted replaced
263:9e2d4f7f5028 268:345b1ca54e88
   158 
   158 
   159 
   159 
   160 void CUsbHostMsDevice::SuspendLunL(TLun aLun)
   160 void CUsbHostMsDevice::SuspendLunL(TLun aLun)
   161 	{
   161 	{
   162     __MSFNLOG
   162     __MSFNLOG
   163 	iLuList.GetLuL(aLun).ReadyToSuspend();
   163     if (IsSuspended())
       
   164         {
       
   165         return;
       
   166         }
       
   167 
       
   168     iLuList.GetLuL(aLun).ReadyToSuspend();
   164 
   169 
   165     // check whether all the luns are suspended, if so then request usb
   170     // check whether all the luns are suspended, if so then request usb
   166     // interface suspension to the transport layer
   171     // interface suspension to the transport layer
   167 	for (TInt i = 0; i < iLuList.Count(); i++)
   172 	for (TInt i = 0; i < iLuList.Count(); i++)
   168 		{
   173 		{