diff --git a/lib/location/method_gnss.c b/lib/location/method_gnss.c index 1df839ff1e1c..a733bc9778af 100644 --- a/lib/location/method_gnss.c +++ b/lib/location/method_gnss.c @@ -1273,10 +1273,10 @@ int method_gnss_location_get(const struct location_request_info *request) return err; } - k_work_submit_to_queue(location_core_work_queue_get(), &method_gnss_prepare_work); - running = true; + k_work_submit_to_queue(location_core_work_queue_get(), &method_gnss_prepare_work); + return 0; }