mtpfws/mtpfw/src/cmtpconnectionmgr.cpp
branchRCL_3
changeset 19 ef55b168cedb
parent 11 4843bb5893b6
child 23 f5809cfbf6d5
--- a/mtpfws/mtpfw/src/cmtpconnectionmgr.cpp	Wed Apr 14 16:49:36 2010 +0300
+++ b/mtpfws/mtpfw/src/cmtpconnectionmgr.cpp	Tue Apr 27 17:30:23 2010 +0300
@@ -182,7 +182,7 @@
                 {
                 iTransport->Stop(*this);
                 delete iTransport;
-                
+                iTransportCount--;
                 iTransport = CMTPTransportPlugin::NewL(aTransport, aParameter);
                 
                 TRAPD(err, iTransport->StartL(*this));
@@ -191,11 +191,12 @@
                     __FLOG_VA( ( _L8("StartTransportL error, error code = %d"), err) );
                     delete iTransport;
                     iTransport = NULL;
+                    
                     User::Leave(err);
                     }
+                iTransportCount++;
                 iTransportUid = aTransport;       
              
-                iTransportCount++;
                 }
 
             }