mtpfws/mtpfw/src/cmtpconnection.cpp
branchRCL_3
changeset 6 ef55b168cedb
parent 4 60a94a45d437
child 18 453dfc402455
--- a/mtpfws/mtpfw/src/cmtpconnection.cpp	Wed Apr 14 16:49:36 2010 +0300
+++ b/mtpfws/mtpfw/src/cmtpconnection.cpp	Tue Apr 27 17:30:23 2010 +0300
@@ -329,6 +329,8 @@
     if (aMTPId != KMTPSessionNone)
         {
         // Notify the data providers if other than the null session is closing.
+        // OpenSession Command coming and now it is really connected to host.
+        PublishConnState(EConnectedToHost);
         TMTPNotificationParamsSessionChange params = {aMTPId, *this};
         iSingletons.DpController().NotifyDataProvidersL(EMTPSessionOpened, &params);
         }
@@ -406,7 +408,7 @@
         iTransportConnection = &aTransportConnection;
         iTransportConnection->BindL(*this); 
         SetState(EStateOpen); 
-        PublishConnState(EConnectedToHost); 
+         
         }
     
     __FLOG(_L8("ConnectionResumed - Exit"));