locationrequestmgmt/networkrequesthandler/src/privacyadvancednotifierhandler.cpp
changeset 57 3267d9ea3e98
parent 0 9cfd9a3ee49c
--- a/locationrequestmgmt/networkrequesthandler/src/privacyadvancednotifierhandler.cpp	Tue Jul 13 12:25:28 2010 +0100
+++ b/locationrequestmgmt/networkrequesthandler/src/privacyadvancednotifierhandler.cpp	Wed Sep 08 15:16:57 2010 +0100
@@ -148,7 +148,8 @@
 	// Record the highest session Id so far.
 	// We need this in case we need to check if a new request
 	// is actually a repeat of an old request.
-	if (aSessionId.SessionNum() > iHighestSessionId.SessionNum())
+	if ((aSessionId.SessionNum() > iHighestSessionId.SessionNum()) &&
+	    (aNetPosRequestPrivacy.RequestAdvice() == TLbsNetPosRequestPrivacyInt::ERequestAdviceVerify))
 		{
 		iHighestSessionId = aSessionId;
 		}
@@ -593,9 +594,10 @@
 				// NotifyVerificationTimeout() on the Network Privacy API.)
 				// We should use a different notification reason for these
 				// types of request.
-				if (request->SessionId().SessionNum() < iHighestSessionId.SessionNum())
+				if (request->SessionId().SessionNum() <= iHighestSessionId.SessionNum())
 					{
 					data.iNotificationReason = EPosVerificationTimeout;
+					data.iRequestDecision = (aRequestPrivacy.RequestAction() == TLbsNetPosRequestPrivacyInt::ERequestActionAllow) ? EPosDecisionAccepted : EPosDecisionRejected;
 					}
 				else
 					{