[fractal/fractal-next] Don't logout on dispose if login not successful
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] Don't logout on dispose if login not successful
- Date: Tue, 2 Nov 2021 18:14:02 +0000 (UTC)
commit f9922e1e1a70d264dac16ab905646a101a67e5a6
Author: Kévin Commaille <zecakeh tedomum fr>
Date: Mon Nov 1 18:02:19 2021 +0100
Don't logout on dispose if login not successful
Prevents a crash if you try to login twice.
Fixes #849
src/session/mod.rs | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/session/mod.rs b/src/session/mod.rs
index 3e6d01cf..8c84a650 100644
--- a/src/session/mod.rs
+++ b/src/session/mod.rs
@@ -440,6 +440,8 @@ impl Session {
Err(error) => {
error!("Failed to prepare the session: {}", error);
+ priv_.logout_on_dispose.set(false);
+
let error_string = error.to_user_facing();
Some(Error::new(move |_| {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]