loggingservices/eventlogger/LogServ/src/LogServOperationQueue.cpp
branchRCL_3
changeset 23 26645d81f48d
parent 0 08ec8eefde2f
child 24 cc28652e0254
--- a/loggingservices/eventlogger/LogServ/src/LogServOperationQueue.cpp	Thu Aug 19 11:36:21 2010 +0300
+++ b/loggingservices/eventlogger/LogServ/src/LogServOperationQueue.cpp	Tue Aug 31 16:57:14 2010 +0300
@@ -133,9 +133,14 @@
 		// This should complete the request with KErrCancel causing RunL to leave
 		// RunError completes the request and removes the operation from the pending queue
 		iTaskInterface.TaskCancelCurrent();
+
 		//
-		if	(!aCompleteRequest)
-			iCurrentOperation->ClearMessagePointer();
+		// Do not complete the message when the operation completes
+		//
+		if (!aCompleteRequest)
+			{
+			iCurrentOperation->SetMessageCompletion(aCompleteRequest);
+			}
 		}
 	else
 		{