[gnome-boxes/fix-vnc-auth-failures: 3/3] machine: Track the life cycle of auth_notification
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/fix-vnc-auth-failures: 3/3] machine: Track the life cycle of auth_notification
- Date: Tue, 7 Apr 2020 09:03:17 +0000 (UTC)
commit 50f94105bafb78de23ca99ef542fd4ac843f858a
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Apr 6 11:37:26 2020 +0200
machine: Track the life cycle of auth_notification
So we can spawn a new one when there was a previous one.
Fixes #446
src/machine.vala | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index b8417695..795058f2 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -755,14 +755,14 @@ private async void delete_auth_credentials () {
return;
}
+ if (auth_notification != null) {
+ auth_notification.dismiss ();
+ auth_notification = null;
+ }
+
try {
yield Secret.password_clear (secret_auth_schema, null,
"gnome-boxes-machine-uuid", config.uuid);
-
- if (auth_notification != null) {
- auth_notification.dismiss ();
- auth_notification = null;
- }
} catch (GLib.Error error) {
debug ("Failed to delete credentials for machine %s: %s", config.uuid, error.message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]