From 7655ffefd9ab526395cdb2ef96c749f89afee9fb Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Tue, 6 Sep 2016 02:46:16 -0700 Subject: [PATCH] Fix bug when determining NextLevel in GPN --- lib/session.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/session.coffee b/lib/session.coffee index 9fb8001..d37422b 100644 --- a/lib/session.coffee +++ b/lib/session.coffee @@ -528,9 +528,8 @@ generateRpcRequest = (sessionData) -> nextLevel = true if pair[0].length >= GET_PARAMETER_NAMES_DEPTH_THRESHOLD - nextLevel = false - else if common.hammingWeight(pair[1] >> 3) >= 3 - nextLevel = false + if common.hammingWeight(pair[1] >> 3) >= 3 + nextLevel = false if syncState.refreshGpn.size > 1 or (pair[1] > 1 and nextLevel) completed = false