sysstatemgmt/systemstatemgr/sus/src/susstateadaptation.cpp
branchRCL_3
changeset 61 8cb079868133
parent 60 ccb4f6b3db21
--- a/sysstatemgmt/systemstatemgr/sus/src/susstateadaptation.cpp	Tue Aug 31 16:29:05 2010 +0300
+++ b/sysstatemgmt/systemstatemgr/sus/src/susstateadaptation.cpp	Wed Sep 01 12:34:26 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2008-2009 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"
@@ -172,11 +172,7 @@
 			DEBUGPRINT1A("CStateAdaptationRequests cancelling current request as requested");
 			iStateAdaptation.RequestCancel();
 			}
-		iPendingRequestsQueue.RemoveFromQueueAndComplete(aMessage); 	
-		if(iPendingRequestsQueue.IsEmpty())
-		    {
-		    iPendingRequestsQueue.Close();
-		    }
+		iPendingRequestsQueue.RemoveFromQueueAndComplete(aMessage);  	
 		aMessage.Complete(KErrNone);
 		}
 	else