locationrequestmgmt/networkrequesthandler/src/privacyadvancednotifierhandler.cpp
changeset 45 15a2125aa2f3
parent 0 9cfd9a3ee49c
--- a/locationrequestmgmt/networkrequesthandler/src/privacyadvancednotifierhandler.cpp	Fri Jun 11 15:06:31 2010 +0300
+++ b/locationrequestmgmt/networkrequesthandler/src/privacyadvancednotifierhandler.cpp	Wed Jun 23 19:48:34 2010 +0300
@@ -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
 					{