featuremgmt/featuremgr/src/serverexe/featmgrsession.cpp
changeset 15 3eacc0623088
parent 14 15018f1726c7
child 17 55f2396f6d25
equal deleted inserted replaced
14:15018f1726c7 15:3eacc0623088
   141             aMessage.Complete( KErrServerBusy );
   141             aMessage.Complete( KErrServerBusy );
   142             }
   142             }
   143         else
   143         else
   144             {
   144             {
   145             INFO_LOG( "CFeatMgrSession::ServiceL() - plugins not ready" );
   145             INFO_LOG( "CFeatMgrSession::ServiceL() - plugins not ready" );
   146             iList.AddLast( *CFeatMgrPendingRequest::NewL( aMessage ) );
   146             CFeatMgrPendingRequest* request=NULL;
       
   147             TRAPD(error,request=CFeatMgrPendingRequest::NewL( aMessage ));
       
   148             if (error!=KErrNone)
       
   149               {
       
   150               LOG_IF_ERROR1( error, "CFeatMgrSession::ServiceL(): Error in Adding Pending Request: %d", error );
       
   151               //cannot create pending request so need to indicate to the client rather than letting the cient wait forever.
       
   152               aMessage.Complete(error);              
       
   153               }
       
   154             else
       
   155               {
       
   156               iList.AddLast(*request);
       
   157               }
   147             }
   158             }
   148         }
   159         }
   149     else
   160     else
   150         {
   161         {
   151         #if defined(FEATMGR_INFO_LOG_ENABLED)
   162         #if defined(FEATMGR_INFO_LOG_ENABLED)