mtptransports/mtpcontroller/src/cmtpcontrollertimer.cpp
changeset 60 841f70763fbe
parent 49 c20dd21d1eb4
equal deleted inserted replaced
52:866b4af7ffbe 60:841f70763fbe
    92         }
    92         }
    93     else
    93     else
    94         {
    94         {
    95         OstTrace0( TRACE_NORMAL, DUP2_CMTPCONTROLLERTIMER_RUNL, "Start transport to launch mtp server" );
    95         OstTrace0( TRACE_NORMAL, DUP2_CMTPCONTROLLERTIMER_RUNL, "Start transport to launch mtp server" );
    96         
    96         
    97         LEAVEIFERROR(iMTPClient.Connect(),
    97 		TInt err = iMTPClient.Connect();
    98 				OstTrace1( TRACE_NORMAL, DUP3_CMTPCONTROLLERTIMER_RUNL, "connect to mtp server failed! error code %d", munged_err ));
    98 		if ( err == KErrNone )
    99         iMTPClient.StartTransport(KMTPBtTransportUid);
    99 			{
   100         iStopTransport = EFalse;
   100 			iMTPClient.StartTransport(KMTPBtTransportUid);
   101         iMTPOperator->SubscribeConnState();
   101 	        iStopTransport = EFalse;
       
   102 		   iMTPOperator->SubscribeConnState();
       
   103 			}
       
   104 		else
       
   105 			{
       
   106 			OstTrace1( TRACE_NORMAL, DUP3_CMTPCONTROLLERTIMER_RUNL, "connect to mtp server failed! error code %d", err );
       
   107 			}
       
   108         
   102         }
   109         }
   103     OstTraceFunctionExit0( CMTPCONTROLLERTIMER_RUNL_EXIT );
   110     OstTraceFunctionExit0( CMTPCONTROLLERTIMER_RUNL_EXIT );
   104     }
   111     }
       
   112