--- a/ncdengine/engine/transport/src/catalogshttpsessionmanagerimpl.cpp Fri Aug 06 10:59:22 2010 +0300
+++ b/ncdengine/engine/transport/src/catalogshttpsessionmanagerimpl.cpp Fri Aug 20 11:39:56 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -126,7 +126,7 @@
// ---------------------------------------------------------------------------
//
TInt CCatalogsHttpSessionManager::StartOperation(
- MCatalogsHttpOperation* aOperation )
+ MCatalogsHttpOperation* aOperation, TBool aConnect )
{
DLTRACEIN((""));
DLINFO( ("Operation ID: %i, Type: %i",
@@ -140,25 +140,26 @@
// Make sure the download is removed from queue
RemoveFromQueue( aOperation );
-
- TBool isRunning = EFalse;
+
// Check if the operation can connect either by using the current AP
// or by opening a new one
- TRAPD( err, isRunning = ConnectL( *aOperation ) );
- if ( err != KErrNone )
+ if ( aConnect )
{
- DLTRACEOUT(("Error: %d, err"));
- return err;
+ TBool isRunning = EFalse;
+ TRAPD( err, isRunning = ConnectL( *aOperation ) );
+ if ( err != KErrNone )
+ {
+ DLTRACEOUT(("Error: %d, err"));
+ return err;
+ }
+ if ( !isRunning )
+ {
+ DLTRACEOUT(("Not running, adding to queue"));
+ return AddToQueue( aOperation );
+ }
}
-
- if ( !isRunning )
- {
- DLTRACEOUT(("Not running, adding to queue"));
- return AddToQueue( aOperation );
- }
-
- // Check whether operation belongs to general queue or not
+ // Check whether operation belongs to general queue or not
if ( aOperation->Config().Priority() > ECatalogsPriorityQueued )
{
// non-general queues