From d525d343e454e3f2ea96d7b0f255c4744641e3cb Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 10 Apr 2024 08:28:25 +0100 Subject: [PATCH] fix indicate that the server was not in the cache --- src/main/java/cc.fascinated/service/ServerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc.fascinated/service/ServerService.java b/src/main/java/cc.fascinated/service/ServerService.java index 014eb64..0867720 100644 --- a/src/main/java/cc.fascinated/service/ServerService.java +++ b/src/main/java/cc.fascinated/service/ServerService.java @@ -58,8 +58,8 @@ public class ServerService { platform.getPinger().ping(hostname, port), System.currentTimeMillis() ); - server.setCached(-1); // Indicate that the server is not cached serverCacheRepository.save(server); + server.setCached(-1); // Indicate that the server is not cached return server; } }