From 2cba450128d39c767aab247f6722130bac91f144 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Fri, 16 Jun 2017 12:14:00 -0700 Subject: [PATCH] Fix issue causing unnecessary GPN requests --- lib/session.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/session.coffee b/lib/session.coffee index 57e955e..8045184 100644 --- a/lib/session.coffee +++ b/lib/session.coffee @@ -1183,7 +1183,9 @@ processDeclarations = (sessionContext, allDeclareTimestamps, allDeclareAttribute virtualParameterDeclarations.push(d) if d else if declareTimestamp > currentTimestamp and declareTimestamp > leafTimestamp - if leafIsObject + if currentPath == leafParam + syncState.refreshAttributes.exist.add(leafParam) + else if leafIsObject syncState.gpn.add(leafParam) if leafTimestamp > 0 f = 1 << leafParam.length