aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/BaseProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-29 22:38:33 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-29 22:38:33 -0800
commit449941043a8303e1cca7c63b28e84b6b53c6871c (patch)
tree82ccd6430eb6f6fe6e199fb2b7fb46aef9e1f3bb /src/main/java/org/traccar/BaseProtocolDecoder.java
parentbdb4aea7ddb7f525d5c476077a88d905d261fdb8 (diff)
downloadtrackermap-server-449941043a8303e1cca7c63b28e84b6b53c6871c.tar.gz
trackermap-server-449941043a8303e1cca7c63b28e84b6b53c6871c.tar.bz2
trackermap-server-449941043a8303e1cca7c63b28e84b6b53c6871c.zip
Migrate more keys
Diffstat (limited to 'src/main/java/org/traccar/BaseProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/BaseProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/BaseProtocolDecoder.java b/src/main/java/org/traccar/BaseProtocolDecoder.java
index 78282b4a5..71e43df5c 100644
--- a/src/main/java/org/traccar/BaseProtocolDecoder.java
+++ b/src/main/java/org/traccar/BaseProtocolDecoder.java
@@ -256,7 +256,7 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
@Override
protected Object handleEmptyMessage(Channel channel, SocketAddress remoteAddress, Object msg) {
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress);
- if (config.getBoolean("database.saveEmpty") && deviceSession != null) {
+ if (config.getBoolean(Keys.DATABASE_SAVE_EMPTY) && deviceSession != null) {
Position position = new Position(getProtocolName());
position.setDeviceId(deviceSession.getDeviceId());
getLastLocation(position, null);