aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/WebDataHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-21 21:06:05 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-21 21:06:05 +1200
commiteaf1f1eb9c394fbc0dc82d4d2cb04f5d001fbfa4 (patch)
tree84bd4612c080c1a7864d441cb86e66b5c2c7fea8 /src/org/traccar/WebDataHandler.java
parent1d64602c49e495bfa97059b0ac4d657ffc9c75e1 (diff)
downloadtrackermap-server-eaf1f1eb9c394fbc0dc82d4d2cb04f5d001fbfa4.tar.gz
trackermap-server-eaf1f1eb9c394fbc0dc82d4d2cb04f5d001fbfa4.tar.bz2
trackermap-server-eaf1f1eb9c394fbc0dc82d4d2cb04f5d001fbfa4.zip
Share async http client instance
Diffstat (limited to 'src/org/traccar/WebDataHandler.java')
-rw-r--r--src/org/traccar/WebDataHandler.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/WebDataHandler.java b/src/org/traccar/WebDataHandler.java
index 5e3626022..e2916d9bc 100644
--- a/src/org/traccar/WebDataHandler.java
+++ b/src/org/traccar/WebDataHandler.java
@@ -15,7 +15,6 @@
*/
package org.traccar;
-import com.ning.http.client.AsyncHttpClient;
import java.util.Calendar;
import java.util.Formatter;
import java.util.Locale;
@@ -70,8 +69,7 @@ public class WebDataHandler extends BaseDataHandler {
replace("{longitude}", String.valueOf(position.getLongitude())).
replace("{gprmc}", formatSentence(position));
- AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
- asyncHttpClient.prepareGet(request).execute();
+ Context.getAsyncHttpClient().prepareGet(request).execute();
return position;
}