mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-04 01:39:35 +01:00
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
This commit is contained in:
parent
6d90752f5d
commit
78b3239a63
@ -75,7 +75,6 @@ public class IP2CGeolocator implements Geolocator {
|
|||||||
HttpURLConnection connection = null;
|
HttpURLConnection connection = null;
|
||||||
try {
|
try {
|
||||||
connection = (HttpURLConnection) new URL("http://ip2c.org/" + address).openConnection();
|
connection = (HttpURLConnection) new URL("http://ip2c.org/" + address).openConnection();
|
||||||
connection.setDefaultUseCaches(false);
|
|
||||||
connection.setUseCaches(false);
|
connection.setUseCaches(false);
|
||||||
connection.connect();
|
connection.connect();
|
||||||
try (
|
try (
|
||||||
|
Loading…
Reference in New Issue
Block a user