summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2017-04-03 13:40:45 -0500
committerraveit65 <[email protected]>2017-07-23 14:55:15 +0200
commitdc71847a5490abad09ef0b4955b5461d8e66ed3f (patch)
tree62200978bda684d74790b96354712e29c7a88bf1
parent109a7fa77bb4745524eca8a0735b210b55b81fe0 (diff)
downloadmate-applets-dc71847a5490abad09ef0b4955b5461d8e66ed3f.tar.bz2
mate-applets-dc71847a5490abad09ef0b4955b5461d8e66ed3f.tar.xz
If location changes, abort any outstanding weather updates
-rw-r--r--mateweather/mateweather-applet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mateweather/mateweather-applet.c b/mateweather/mateweather-applet.c
index cde3e62e..9870547e 100644
--- a/mateweather/mateweather-applet.c
+++ b/mateweather/mateweather-applet.c
@@ -546,6 +546,7 @@ void mateweather_update (MateWeatherApplet *gw_applet)
weather_info_update(gw_applet->mateweather_info, &prefs,
update_finish, gw_applet);
} else {
+ weather_info_abort (gw_applet->mateweather_info);
weather_info_free(gw_applet->mateweather_info);
gw_applet->mateweather_info = weather_info_new(gw_applet->mateweather_pref.location,
&prefs,