mtpfws/mtpfw/src/cmtpconnection.cpp
changeset 22 a5c0bb5018eb
parent 20 6e82ae192c3a
child 31 a26669f87b46
child 38 48c22c726cf9
--- a/mtpfws/mtpfw/src/cmtpconnection.cpp	Mon May 03 13:19:02 2010 +0300
+++ b/mtpfws/mtpfw/src/cmtpconnection.cpp	Fri May 14 16:42:01 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"));