Browse Source

Weather: Do not display error page when network connectivity is lost; instead, keep showing cached data from last refresh

pull/1138/head
Valentin Radu 4 years ago
parent
commit
7c1cb3d560
  1. 1
      ep_weather_host/ep_weather_host.c

1
ep_weather_host/ep_weather_host.c

@ -83,6 +83,7 @@ HRESULT STDMETHODCALLTYPE INetworkListManagerEvents_ConnectivityChanged(void* _t @@ -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");
}

Loading…
Cancel
Save