From 89806e14be5ff9637179c497b5ad2ac49a7a35c5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 21 Jul 2016 00:13:33 +1200 Subject: Do not close HTTP connection --- src/org/traccar/protocol/OsmAndProtocolDecoder.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/org/traccar/protocol') 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; -- cgit v1.2.3