From 42140ceae97b3da66a54b0b5480242adf0b4e23e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 11 Jul 2022 20:34:34 -0700 Subject: Simplify timeout units --- src/main/java/org/traccar/session/ConnectionManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/traccar/session') diff --git a/src/main/java/org/traccar/session/ConnectionManager.java b/src/main/java/org/traccar/session/ConnectionManager.java index ad02c591b..d4bb9b4b1 100644 --- a/src/main/java/org/traccar/session/ConnectionManager.java +++ b/src/main/java/org/traccar/session/ConnectionManager.java @@ -100,7 +100,7 @@ public class ConnectionManager implements BroadcastInterface { this.timer = timer; this.broadcastService = broadcastService; this.deviceLookupService = deviceLookupService; - deviceTimeout = config.getLong(Keys.STATUS_TIMEOUT) * 1000; + deviceTimeout = config.getLong(Keys.STATUS_TIMEOUT); updateDeviceState = config.getBoolean(Keys.STATUS_UPDATE_DEVICE_STATE); broadcastService.registerListener(this); } @@ -270,7 +270,7 @@ public class ConnectionManager implements BroadcastInterface { if (!timeout1.isCancelled()) { deviceUnknown(deviceId); } - }, deviceTimeout, TimeUnit.MILLISECONDS)); + }, deviceTimeout, TimeUnit.SECONDS)); } try { -- cgit v1.2.3