Skip to content

Commit

Permalink
fix(linux): clean up location sensor D-Bus watch
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Dec 2, 2023
1 parent 6380b6b commit 6fad74e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/linux/locationSensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,11 @@ func LocationUpdater(ctx context.Context, tracker device.SensorTracker) {
}()

err := dbushelpers.NewBusRequest(ctx, dbushelpers.SystemBus).
Path(clientPath).
Match([]dbus.MatchOption{
dbus.WithMatchObjectPath(clientPath),
dbus.WithMatchInterface(clientInterface),
dbus.WithMatchMember("LocationUpdated"),
}).
Event(locationUpdatedSignal).
Handler(locationUpdateHandler).
AddWatch(ctx)
if err != nil {
Expand Down

0 comments on commit 6fad74e

Please sign in to comment.