Browse Source

Fix: logic error

Rod Hynes 8 years ago
parent
commit
baa89221f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      psiphon/dataStore.go

+ 1 - 1
psiphon/dataStore.go

@@ -247,7 +247,7 @@ func StoreServerEntry(serverEntry *protocol.ServerEntry, replaceIfExists bool) e
 		}
 		}
 
 
 		exists := existingConfigurationVersion > -1
 		exists := existingConfigurationVersion > -1
-		newer := exists && existingConfigurationVersion > serverEntry.ConfigurationVersion
+		newer := exists && existingConfigurationVersion < serverEntry.ConfigurationVersion
 		update := !exists || replaceIfExists || newer
 		update := !exists || replaceIfExists || newer
 
 
 		if !update {
 		if !update {