--- 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++;
}
}