Skip to content

Commit

Permalink
Update src-tauri/src/periodic/connection.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Adam <[email protected]>
  • Loading branch information
t-aleksander and moubctez authored Jan 7, 2025
1 parent cc4b0c1 commit 17578f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/periodic/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 17578f2

Please sign in to comment.