mtpfws/mtpfw/daemon/server/src/cmtpserversession.cpp
branchRCL_3
changeset 5 3673b591050c
parent 0 d0791faffa3f
equal deleted inserted replaced
4:60a94a45d437 5:3673b591050c
   130     
   130     
   131     TUid secureid=aMessage.SecureId();    
   131     TUid secureid=aMessage.SecureId();    
   132     iSingletons.ConnectionMgr().SetClientSId(secureid);
   132     iSingletons.ConnectionMgr().SetClientSId(secureid);
   133     
   133     
   134     TInt length = aMessage.GetDesLength( 1 );
   134     TInt length = aMessage.GetDesLength( 1 );
   135     
   135 
   136     if((!CheckIsBlueToothTransport(newUID) || (length!=0)) && (iSingletons.DpController().Count()==0))
       
   137     	{
       
   138     	iSingletons.DpController().LoadDataProvidersL();
       
   139     	iSingletons.Router().ConfigureL();
       
   140     	}
       
   141    
   136    
   142     if (length > 0)
   137     if (length > 0)
   143     	{
   138     	{
   144     	HBufC8* paramHbuf = HBufC8::NewLC(length);
   139     	HBufC8* paramHbuf = HBufC8::NewLC(length);
   145     	TPtr8 bufptr = paramHbuf->Des();
   140     	TPtr8 bufptr = paramHbuf->Des();
   161     	}
   156     	}
   162     else
   157     else
   163     	{
   158     	{
   164     	iSingletons.ConnectionMgr().StartTransportL(newUID, NULL);
   159     	iSingletons.ConnectionMgr().StartTransportL(newUID, NULL);
   165     	aMessage.Complete(KErrNone);
   160     	aMessage.Complete(KErrNone);
       
   161     	}
       
   162     
       
   163     // Fix TSW error MHAN-7ZU96Z
       
   164     if((!CheckIsBlueToothTransport(newUID) || (length!=0)) && (iSingletons.DpController().Count()==0))
       
   165     	{
       
   166     	iSingletons.DpController().LoadDataProvidersL();
       
   167     	iSingletons.Router().ConfigureL();
   166     	}
   168     	}
   167     
   169     
   168     
   170     
   169     __FLOG(_L8("DoStartTransportL - Exit"));
   171     __FLOG(_L8("DoStartTransportL - Exit"));
   170     }  
   172     }