Skip to content

Commit

Permalink
fix(gpsd): keep location_changed handler around longer
Browse files Browse the repository at this point in the history
  • Loading branch information
spmadden committed Sep 18, 2023
1 parent 8b61c87 commit 4493c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/gpsd/src/bin/gpsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ mod windows {
error!("Error sending initial TPV: {e:?}");
}

locator.on_location_changed(move |pos| {
let _handle = locator.on_location_changed(move |pos| {
info!("{pos:?}");
let frame: Frame = (&pos).into();
if let Err(e) = server.send(&frame) {
Expand Down

0 comments on commit 4493c8e

Please sign in to comment.