We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6f410b commit dd429e9Copy full SHA for dd429e9
src/AspNetCoreModuleV2/CommonLib/PollingAppOfflineApplication.cpp
@@ -27,12 +27,20 @@ PollingAppOfflineApplication::CheckAppOffline()
27
SRWExclusiveLock lock(m_statusLock);
28
if (ulCurrentTime - m_ulLastCheckTime > c_appOfflineRefreshIntervalMS)
29
{
30
- m_fAppOfflineFound = is_regular_file(m_appOfflineLocation);
31
- if(m_fAppOfflineFound)
+ try
32
33
- LOG_IF_FAILED(OnAppOfflineFound());
+ m_fAppOfflineFound = is_regular_file(m_appOfflineLocation);
+ if(m_fAppOfflineFound)
34
+ {
35
+ LOG_IF_FAILED(OnAppOfflineFound());
36
+ }
37
+ m_ulLastCheckTime = ulCurrentTime;
38
39
+ catch (...)
40
41
+ // is_regular_file might throw in very rare cases
42
+ OBSERVE_CAUGHT_EXCEPTION();
43
}
- m_ulLastCheckTime = ulCurrentTime;
44
45
46
0 commit comments