aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-21 00:13:33 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-21 00:13:33 +1200
commit89806e14be5ff9637179c497b5ad2ac49a7a35c5 (patch)
treee2f211bf030277b1e845c92da77ccd8eebf2b296 /src/org
parentb762d087c09533cc66330d546b1832da2816a400 (diff)
downloadtrackermap-server-89806e14be5ff9637179c497b5ad2ac49a7a35c5.tar.gz
trackermap-server-89806e14be5ff9637179c497b5ad2ac49a7a35c5.tar.bz2
trackermap-server-89806e14be5ff9637179c497b5ad2ac49a7a35c5.zip
Do not close HTTP connection
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/OsmAndProtocolDecoder.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
index cfa8990dd..c5a37b47a 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -123,9 +123,7 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
}
if (channel != null) {
- HttpResponse response = new DefaultHttpResponse(
- HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
- channel.write(response).addListener(ChannelFutureListener.CLOSE);
+ channel.write(new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK));
}
return position;