From ee10cafa00d519f9533d161a9f3a220f9fe5f511 Mon Sep 17 00:00:00 2001 From: ArenM Date: Sun, 12 Sep 2021 16:03:45 -0400 Subject: [PATCH] gnss: flush tmp_file after downloading gpsOneXtra data --- src/gnss.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gnss.c b/src/gnss.c index 898c0da..741caa9 100644 --- a/src/gnss.c +++ b/src/gnss.c @@ -238,7 +238,10 @@ static void fetch_assistance_data(struct EG25Manager *manager) } g_message("Fetching GNSS assistance data from %s was successfull", url); + + fflush(tmp_file); curl_easy_cleanup(curl); + g_free(url); /* Go to the next step */ manager->gnss_assistance_step++;