loggingservices/eventlogger/LogServ/src/LogServOperationQueue.cpp
branchRCL_3
changeset 24 cc28652e0254
parent 23 26645d81f48d
equal deleted inserted replaced
23:26645d81f48d 24:cc28652e0254
   131 		// We need to cancel the current active operation because it belongs to this session
   131 		// We need to cancel the current active operation because it belongs to this session
   132 		//
   132 		//
   133 		// This should complete the request with KErrCancel causing RunL to leave
   133 		// This should complete the request with KErrCancel causing RunL to leave
   134 		// RunError completes the request and removes the operation from the pending queue
   134 		// RunError completes the request and removes the operation from the pending queue
   135 		iTaskInterface.TaskCancelCurrent();
   135 		iTaskInterface.TaskCancelCurrent();
   136 
       
   137 		//
   136 		//
   138 		// Do not complete the message when the operation completes
   137 		if	(!aCompleteRequest)
   139 		//
   138 			iCurrentOperation->ClearMessagePointer();
   140 		if (!aCompleteRequest)
       
   141 			{
       
   142 			iCurrentOperation->SetMessageCompletion(aCompleteRequest);
       
   143 			}
       
   144 		}
   139 		}
   145 	else
   140 	else
   146 		{
   141 		{
   147 		// The active operation doesn't belong to this session - just remove any relevant operations from the queues
   142 		// The active operation doesn't belong to this session - just remove any relevant operations from the queues
   148 		//
   143 		//