aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/DeviceSession.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/DeviceSession.java')
-rw-r--r--src/org/traccar/DeviceSession.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/DeviceSession.java b/src/org/traccar/DeviceSession.java
index 5e2686f23..45bc5dcde 100644
--- a/src/org/traccar/DeviceSession.java
+++ b/src/org/traccar/DeviceSession.java
@@ -21,6 +21,9 @@ public class DeviceSession {
public DeviceSession(long deviceId) {
this.deviceId = deviceId;
+ if (Context.getStatisticsManager() != null) {
+ Context.getStatisticsManager().registerDevice(deviceId);
+ }
}
public long getDeviceId() {