aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-03-01 09:39:41 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-03-01 09:39:41 +1300
commitc988200458e48b3909abfb18689faadd458acf91 (patch)
tree224e31daaa53ed1286b2577b613fca64d2bb1205 /src/org
parent54da1857624603a9583d9f5e747030e47ae6d1be (diff)
downloadtrackermap-server-c988200458e48b3909abfb18689faadd458acf91.tar.gz
trackermap-server-c988200458e48b3909abfb18689faadd458acf91.tar.bz2
trackermap-server-c988200458e48b3909abfb18689faadd458acf91.zip
Use little endian for BCE
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/ServerManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index f637f8161..57cb3ea4e 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -1326,13 +1326,15 @@ public class ServerManager {
private void initBceServer(final String protocol) throws SQLException {
if (isProtocolEnabled(properties, protocol)) {
- serverList.add(new TrackerServer(this, new ServerBootstrap(), protocol) {
+ TrackerServer server = new TrackerServer(this, new ServerBootstrap(), protocol) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("frameDecoder", new BceFrameDecoder());
pipeline.addLast("objectDecoder", new BceProtocolDecoder(dataManager, protocol, properties));
}
- });
+ };
+ server.setEndianness(ByteOrder.LITTLE_ENDIAN);
+ serverList.add(server);
}
}