From 0d0e118d44e8b43f351a75068c5e9077972b20c0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 12 May 2015 09:55:26 +1200 Subject: Clear device id if unidentified --- src/org/traccar/BaseProtocolDecoder.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/org') diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java index bcd441268..d150c9c80 100644 --- a/src/org/traccar/BaseProtocolDecoder.java +++ b/src/org/traccar/BaseProtocolDecoder.java @@ -57,12 +57,14 @@ public abstract class BaseProtocolDecoder extends OneToOneDecoder { deviceId = device.getId(); return true; } else { + deviceId = 0; if (logWarning) { Log.warning("Unknown device - " + uniqueId); } return false; } } catch (Exception error) { + deviceId = 0; Log.warning(error); return false; } -- cgit v1.2.3