From 17578f2fa94d2d3e5c1a27ea5771b3720a4e4339 Mon Sep 17 00:00:00 2001 From: Aleksander <170264518+t-aleksander@users.noreply.github.com> Date: Tue, 7 Jan 2025 12:50:10 +0100 Subject: [PATCH] Update src-tauri/src/periodic/connection.rs Co-authored-by: Adam --- src-tauri/src/periodic/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/periodic/connection.rs b/src-tauri/src/periodic/connection.rs index d929bf87..fd56289e 100644 --- a/src-tauri/src/periodic/connection.rs +++ b/src-tauri/src/periodic/connection.rs @@ -125,7 +125,7 @@ pub async fn verify_active_connections(app_handle: AppHandle) -> Result<(), Erro ) { // Check if there was any traffic since the connection was established. // If not, consider the location dead and disconnect it later without reconnecting. - if latest_stat.collected_at - con.start < TimeDelta::zero() { + if latest_stat.collected_at < con.start { debug!("There wasn't any activity for Location {} since its connection at {}; considering it being dead and possibly broken. \ It will be disconnected without a further automatic reconnect.", con.location_id, con.start); locations_to_disconnect.push((con.location_id, false));