From 7c1cb3d5608ef1c2847554682a5685e696ab35c4 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Thu, 4 Aug 2022 23:58:28 +0300 Subject: [PATCH] Weather: Do not display error page when network connectivity is lost; instead, keep showing cached data from last refresh --- ep_weather_host/ep_weather_host.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ep_weather_host/ep_weather_host.c b/ep_weather_host/ep_weather_host.c index 9413248..6e04fb3 100644 --- a/ep_weather_host/ep_weather_host.c +++ b/ep_weather_host/ep_weather_host.c @@ -83,6 +83,7 @@ HRESULT STDMETHODCALLTYPE INetworkListManagerEvents_ConnectivityChanged(void* _t else { printf("[Network Events] Internet connection status is: Offline.\n"); + KillTimer(_this->hWnd, EP_WEATHER_TIMER_REQUEST_REFRESH); KillTimer(_this->hWnd, EP_WEATHER_TIMER_SCHEDULE_REFRESH); printf("[Network Events] Killed refresh timer.\n"); }