diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-21 00:13:33 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-21 00:13:33 +1200 |
commit | 89806e14be5ff9637179c497b5ad2ac49a7a35c5 (patch) | |
tree | e2f211bf030277b1e845c92da77ccd8eebf2b296 | |
parent | b762d087c09533cc66330d546b1832da2816a400 (diff) | |
download | trackermap-server-89806e14be5ff9637179c497b5ad2ac49a7a35c5.tar.gz trackermap-server-89806e14be5ff9637179c497b5ad2ac49a7a35c5.tar.bz2 trackermap-server-89806e14be5ff9637179c497b5ad2ac49a7a35c5.zip |
Do not close HTTP connection
-rw-r--r-- | src/org/traccar/protocol/OsmAndProtocolDecoder.java | 4 |
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; |