From 4493c8eedfa802864fe8a6874a0dcc2d0abb6f61 Mon Sep 17 00:00:00 2001 From: Sean Madden Date: Sun, 17 Sep 2023 23:35:54 -0400 Subject: [PATCH] fix(gpsd): keep location_changed handler around longer --- tools/gpsd/src/bin/gpsd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gpsd/src/bin/gpsd.rs b/tools/gpsd/src/bin/gpsd.rs index 3f863bf3..30ef2222 100644 --- a/tools/gpsd/src/bin/gpsd.rs +++ b/tools/gpsd/src/bin/gpsd.rs @@ -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) {