[Xfce4-commits] <xfce4-weather-plugin:master> Fix wrong next astro data update time on retry.

Harald Judt noreply at xfce.org
Fri Dec 14 15:14:01 CET 2012


Updating branch refs/heads/master
         to 4e3426e38f93400c3932063f479de127853efa38 (commit)
       from 2beff6392856002ca78272da5b7bd7ae73aecfe1 (commit)

commit 4e3426e38f93400c3932063f479de127853efa38
Author: Harald Judt <h.judt at gmx.at>
Date:   Fri Dec 14 15:09:45 2012 +0100

    Fix wrong next astro data update time on retry.

 panel-plugin/weather.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 17a3966..229eaf6 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -435,8 +435,8 @@ cb_astro_update(SoupSession *session,
 
     if (G_UNLIKELY(astro == NULL)) {
         /* download or parsing failed, schedule retry */
-        data->astro_update->next = calc_next_download_time(data->astro_update);
         data->astro_update->attempt++;
+        data->astro_update->next = calc_next_download_time(data->astro_update);
     }
     schedule_next_wakeup(data);
     weather_dump(weather_dump_astrodata, data->astrodata);


More information about the Xfce4-commits mailing list