From 78b3239a63ad133dde77478f0eac0b43652e3c5d Mon Sep 17 00:00:00 2001 From: Rsl1122 <24460436+Rsl1122@users.noreply.github.com> Date: Sun, 19 Jan 2020 12:27:38 +0200 Subject: [PATCH] Removed setDefaultUseCaches(false) Calling this method causes SpongeForge to crash later https://forums.spongepowered.org/t/spongeforge-crashes-in-odd-circumstances/34699/4 Affects issues: - Fixed #1296, #1291, #1292 --- .../djrapitops/plan/gathering/geolocation/IP2CGeolocator.java | 1 - 1 file changed, 1 deletion(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/gathering/geolocation/IP2CGeolocator.java b/Plan/common/src/main/java/com/djrapitops/plan/gathering/geolocation/IP2CGeolocator.java index 369a0c94e..77d70a8aa 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/gathering/geolocation/IP2CGeolocator.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/gathering/geolocation/IP2CGeolocator.java @@ -75,7 +75,6 @@ public class IP2CGeolocator implements Geolocator { HttpURLConnection connection = null; try { connection = (HttpURLConnection) new URL("http://ip2c.org/" + address).openConnection(); - connection.setDefaultUseCaches(false); connection.setUseCaches(false); connection.connect(); try (