Skip to content

Commit

Permalink
fix: failed polling request shouldn't make disconnect fail (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-chmielewski committed Sep 15, 2024
1 parent c378306 commit 1c0a1e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ pub async fn disconnect(
info!("Disconnected from location with id: {location_id}");
reload_tray_menu(&handle).await;
if connection_type == ConnectionType::Location {
maybe_update_instance_config(location_id, &handle).await?;
if let Err(err) = maybe_update_instance_config(location_id, &handle).await {
warn!("Failed to update instance for location {location_id}: {err}");
};
}
Ok(())
} else {
Expand Down

0 comments on commit 1c0a1e0

Please sign in to comment.