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 416e7b0 commit 32b2b03Copy full SHA for 32b2b03
permission_handler_windows/windows/permission_handler_windows_plugin.cpp
@@ -87,10 +87,14 @@ void PermissionHandlerWindowsPlugin::RegisterWithRegistrar(
87
}
88
89
PermissionHandlerWindowsPlugin::PermissionHandlerWindowsPlugin(){
90
- m_positionChangedRevoker = geolocator.PositionChanged(winrt::auto_revoke,
91
- [this](Geolocator const& geolocator, PositionChangedEventArgs e)
92
- {
93
- });
+ try {
+ m_positionChangedRevoker = geolocator.PositionChanged(winrt::auto_revoke,
+ [this](Geolocator const& geolocator, PositionChangedEventArgs e)
+ {
94
+ });
95
+ } catch (...) {
96
+ /* Do nothing */
97
+ }
98
99
100
PermissionHandlerWindowsPlugin::~PermissionHandlerWindowsPlugin() = default;
0 commit comments