X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/6cce5b6fe11fe8c69b08140d645c604fef59e42a..03fdf984e93d81ed95945db51c83baf6c23e89e8:/widgets/weather.lua?ds=sidebyside

diff --git a/widgets/weather.lua b/widgets/weather.lua
index 32e3065..ff86d7e 100644
--- a/widgets/weather.lua
+++ b/widgets/weather.lua
@@ -160,8 +160,8 @@ local function worker(args)
 
     weather.attach(weather.widget)
 
-    newtimer("weather-" .. city_id, timeout, weather.update)
-    newtimer("weather_forecast-" .. city_id, timeout, weather.forecast_update)
+    weather.timer = newtimer("weather-" .. city_id, timeout, weather.update, false, true)
+    weather.timer_forecast = newtimer("weather_forecast-" .. city_id, timeout, weather.forecast_update, false, true)
 
     return setmetatable(weather, { __index = weather.widget })
 end