aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-14 11:44:27 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-14 11:44:27 +1200
commit15f3258905e964ab3b23d9c11fde4a1946ef10b0 (patch)
tree971ff048cf48ae5d047f9e68ba663dd106040be7 /src/org/traccar/Context.java
parentd88f364aca4790c1fc7775cd6e4faf488dc9fe94 (diff)
downloadtrackermap-server-15f3258905e964ab3b23d9c11fde4a1946ef10b0.tar.gz
trackermap-server-15f3258905e964ab3b23d9c11fde4a1946ef10b0.tar.bz2
trackermap-server-15f3258905e964ab3b23d9c11fde4a1946ef10b0.zip
Update Java libraries
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index 1a35a2cb4..e84e14b4c 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -17,13 +17,14 @@ package org.traccar;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
-import com.ning.http.client.AsyncHttpClient;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Properties;
import org.apache.velocity.app.VelocityEngine;
+import org.asynchttpclient.AsyncHttpClient;
+import org.asynchttpclient.DefaultAsyncHttpClient;
import org.eclipse.jetty.util.URIUtil;
import org.traccar.database.AliasesManager;
import org.traccar.database.CalendarManager;
@@ -155,7 +156,7 @@ public final class Context {
return velocityEngine;
}
- private static final AsyncHttpClient ASYNC_HTTP_CLIENT = new AsyncHttpClient();
+ private static final AsyncHttpClient ASYNC_HTTP_CLIENT = new DefaultAsyncHttpClient();
public static AsyncHttpClient getAsyncHttpClient() {
return ASYNC_HTTP_CLIENT;