--- a/engine/src/ConnectionEngine.cpp Sat Oct 30 12:36:47 2010 +0100
+++ b/engine/src/ConnectionEngine.cpp Sat Oct 30 13:52:07 2010 +0100
@@ -56,8 +56,8 @@
void CConnectionEngine::RunL()
{
- DP1("CConnectionEngine::RunL BEGIN, iStatus.Int()=%d", iStatus.Int());
- if ( iStatus.Int() == KErrNone && iMobility == NULL)
+ DP2("CConnectionEngine::RunL BEGIN, iStatus.Int()=%d, iConnectionState=%d", iStatus.Int(), iConnectionState);
+ if ( iStatus.Int() == KErrNone && iMobility == NULL && iConnectionState == EConnected)
{
TRAPD(err, iMobility = CActiveCommsMobilityApiExt::NewL( iConnection, *this ));
--- a/engine/src/HttpClient.cpp Sat Oct 30 12:36:47 2010 +0100
+++ b/engine/src/HttpClient.cpp Sat Oct 30 13:52:07 2010 +0100
@@ -122,22 +122,16 @@
if( aErrorCode == KErrNone)
{
TRAP_IGNORE(iSession.OpenL());
- DP(" one");
RHTTPConnectionInfo connInfo = iSession.ConnectionInfo();
- DP(" one point five");
RStringPool pool = iSession.StringPool();
// Attach to socket server
- DP(" two");
connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketServ, RHTTPSession::GetTable()), THTTPHdrVal(iPodcastModel.ConnectionEngine().SockServ().Handle()));
// Attach to connection
- DP(" three");
TInt connPtr = REINTERPRET_CAST(TInt, &iPodcastModel.ConnectionEngine().Connection());
connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketConnection, RHTTPSession::GetTable()), THTTPHdrVal(connPtr));
- DP(" four");
iPodcastModel.SetProxyUsageIfNeededL(iSession);
DoGetAfterConnectL();
- //iWaitingForGet = EFalse; // set to true by DoGetAfterConnectL
}
else
{