`geo_master` doesn't need to be a global variable: it's only ever used in geo_start.
Why are you calling geo_stop unconditionally in on_use_geoclue_changed? I'd put it in the `else` below, in case the callback is called even though the value hasn't changed (which may happen according to the docs).
Nice cleanup!
`geo_master` doesn't need to be a global variable: it's only ever used in geo_start.
Why are you calling geo_stop unconditionally in on_use_ geoclue_ changed? I'd put it in the `else` below, in case the callback is called even though the value hasn't changed (which may happen according to the docs).