userlibandfileserver/fileserver/shostmassstorage/server/controller/cusbhostmsdevicethread.cpp
branchRCL_3
changeset 41 0ffb4e86fcc9
parent 24 41f0cfe18c80
equal deleted inserted replaced
39:2bb754abd467 41:0ffb4e86fcc9
   306             // Error condition needs to be completed
   306             // Error condition needs to be completed
   307             break;
   307             break;
   308             }
   308             }
   309 		return;
   309 		return;
   310 	case EUsbHostMsUnRegisterInterface:
   310 	case EUsbHostMsUnRegisterInterface:
       
   311 		// Check whether all luns have got uninitialised. 
       
   312 		for(TInt i = 0, j = iUsbHostMsDevice->GetMaxLun(); i <= j; i++)
       
   313 			TRAP_IGNORE(iUsbHostMsDevice->RemoveLunL(i));
   311 		TRAP(ret, UnRegisterInterfaceL(aMessage));
   314 		TRAP(ret, UnRegisterInterfaceL(aMessage));
   312 		break;
   315 		break;
   313 	case EUsbHostMsRegisterLun:
   316 	case EUsbHostMsRegisterLun:
   314 		TRAP(ret, RegisterLogicalUnitL(aMessage));
   317 		TRAP(ret, RegisterLogicalUnitL(aMessage));
   315 		break;
   318 		break;