diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/BaseProtocolDecoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |