i'm a dummy

This commit is contained in:
Luck 2018-02-15 22:08:42 +00:00
parent df5240a67c
commit a3730aceeb
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -38,9 +38,7 @@ import java.io.IOException;
*/
public class HttpClient {
private static OkHttpClient client = new OkHttpClient.Builder()
.addInterceptor(new LuckPermsUserAgentInterceptor())
.build();
private static OkHttpClient client = null;
private synchronized static OkHttpClient getClient() {
if (client == null) {