Fix bug when determining NextLevel in GPN

This commit is contained in:
Zaid Abdulla committed 2016-09-06 02:46:16 -07:00
1 parent ad38a7ccb1
commit 7655ffefd9
1 file changed
+2 -3
+2 -3
View File
@@ -528,9 +528,8 @@ generateRpcRequest = (sessionData) ->
nextLevel = true nextLevel = true
if pair[0].length >= GET_PARAMETER_NAMES_DEPTH_THRESHOLD if pair[0].length >= GET_PARAMETER_NAMES_DEPTH_THRESHOLD
nextLevel = false if common.hammingWeight(pair[1] >> 3) >= 3
else if common.hammingWeight(pair[1] >> 3) >= 3 nextLevel = false
nextLevel = false
if syncState.refreshGpn.size > 1 or (pair[1] > 1 and nextLevel) if syncState.refreshGpn.size > 1 or (pair[1] > 1 and nextLevel)
completed = false completed = false