userlibandfileserver/fileserver/shostmassstorage/server/controller/cusbhostmsdevice.cpp
equal
deleted
inserted
replaced
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 { |