mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
status/network: Catch errors when fetching client
Otherwise any unrelated errors in that function are hidden, because exceptions in async functions are turned into promise rejections (and JS cannot know that we won't handle it at a later point). It wouldn't happen to me of course 😉 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2406>
This commit is contained in:
parent
d9d70c162d
commit
af132dd884
1 changed files with 1 additions and 1 deletions
|
|
@ -1749,7 +1749,7 @@ class Indicator extends PanelMenu.SystemIndicator {
|
|||
this._ctypes[NM.SETTING_VPN_SETTING_NAME] = NMConnectionCategory.VPN;
|
||||
this._ctypes[NM.SETTING_WIREGUARD_SETTING_NAME] = NMConnectionCategory.VPN;
|
||||
|
||||
this._getClient();
|
||||
this._getClient().catch(logError);
|
||||
}
|
||||
|
||||
async _getClient() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue