Compare commits

...

2 Commits

Author SHA1 Message Date
e350b039d2 Merge remote-tracking branch 'origin/master'
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 38s
2024-04-29 06:53:00 +01:00
80daf3899a fix the fix 2024-04-29 06:52:52 +01:00

View File

@ -36,7 +36,7 @@ public class PiaManager {
serversFile.createNewFile(); serversFile.createNewFile();
} }
// Load the serversFile from the file // Load the serversFile from the file
SERVERS = Main.GSON.fromJson(Files.readString(serversFile.toPath()), new TypeToken<List<PiaServer>>() {}.getType()); SERVERS = Main.GSON.fromJson(Files.readString(serversFile.toPath()), new TypeToken<Set<PiaServer>>() {}.getType());
if (SERVERS == null) { if (SERVERS == null) {
SERVERS = new HashSet<>(); SERVERS = new HashSet<>();
} }