loggingservices/eventlogger/LogServ/src/LogServOperationQueue.cpp
changeset 40 b8bdbc8f59c7
parent 0 08ec8eefde2f
child 45 cc28652e0254
equal deleted inserted replaced
33:5e4beccba4e9 40:b8bdbc8f59c7
   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 
   136 		//
   137 		//
   137 		if	(!aCompleteRequest)
   138 		// Do not complete the message when the operation completes
   138 			iCurrentOperation->ClearMessagePointer();
   139 		//
       
   140 		if (!aCompleteRequest)
       
   141 			{
       
   142 			iCurrentOperation->SetMessageCompletion(aCompleteRequest);
       
   143 			}
   139 		}
   144 		}
   140 	else
   145 	else
   141 		{
   146 		{
   142 		// The active operation doesn't belong to this session - just remove any relevant operations from the queues
   147 		// The active operation doesn't belong to this session - just remove any relevant operations from the queues
   143 		//
   148 		//