mtpfws/mtpfw/dataproviders/devdp/src/cmtpopensession.cpp
changeset 20 6e82ae192c3a
parent 17 aabe5387f5ce
equal deleted inserted replaced
18:1b39655331a3 20:6e82ae192c3a
    80 /**
    80 /**
    81 OpenSession request handler.  Adds the session to the connection.
    81 OpenSession request handler.  Adds the session to the connection.
    82 */    
    82 */    
    83 void CMTPOpenSession::ServiceL()    
    83 void CMTPOpenSession::ServiceL()    
    84     {
    84     {
    85     iSingletons.DpController().WaitForEnumerationComplete();
    85     if(iSingletons.DpController().EnumerateState() < CMTPDataProviderController::EEnumeratingPhaseOneDone)
       
    86         {
       
    87         RegisterPendingRequest();
       
    88         return;
       
    89         }
       
    90     
    86     if(iSingletons.DpController().EnumerateState() < CMTPDataProviderController::EEnumeratingPhaseOneDone)
    91     if(iSingletons.DpController().EnumerateState() < CMTPDataProviderController::EEnumeratingPhaseOneDone)
    87     	{
    92     	{
    88     	SendResponseL(EMTPRespCodeDeviceBusy);
    93     	SendResponseL(EMTPRespCodeDeviceBusy);
    89     	}
    94     	}
    90     else
    95     else