diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-14 11:44:27 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-14 11:44:27 +1200 |
commit | 15f3258905e964ab3b23d9c11fde4a1946ef10b0 (patch) | |
tree | 971ff048cf48ae5d047f9e68ba663dd106040be7 /src/org/traccar/Context.java | |
parent | d88f364aca4790c1fc7775cd6e4faf488dc9fe94 (diff) | |
download | trackermap-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.java | 5 |
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; |