gdm/util: Do not handle fingerprint async errors in call

It's better to do this at caller level so that we have more control of
what to do on errors.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2267>
This commit is contained in:
Marco Trevisan (Treviño) 2022-10-25 04:47:08 +02:00
parent ea3731de38
commit 0d24563296

View File

@ -170,7 +170,7 @@ export class ShellUserVerifier extends Signals.EventEmitter {
this._userName = userName;
this.reauthenticating = false;
this._checkForFingerprintReader();
this._checkForFingerprintReader().catch(logError);
// If possible, reauthenticate an already running session,
// so any session specific credentials get updated appropriately
@ -355,7 +355,6 @@ export class ShellUserVerifier extends Signals.EventEmitter {
return;
}
try {
const [device] = await this._fprintManager.GetDefaultDeviceAsync(
Gio.DBusCallFlags.NONE, this._cancellable);
const fprintDeviceProxy = new FprintDeviceProxy(Gio.DBus.system,
@ -367,7 +366,6 @@ export class ShellUserVerifier extends Signals.EventEmitter {
? FingerprintReaderType.SWIPE
: FingerprintReaderType.PRESS;
this._updateDefaultService();
} catch (e) {}
}
_onCredentialManagerAuthenticated(credentialManager, _token) {