[fractal/fractal-next] verification: Make sure use Mode::CurrentSession for setup



commit cef415bc0158c5142b92f4698aa96abd132021fc
Author: Julian Sparber <julian sparber net>
Date:   Tue Mar 22 13:05:30 2022 +0100

    verification: Make sure use Mode::CurrentSession for setup

 src/session/content/verification/session_verification.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/session/content/verification/session_verification.rs 
b/src/session/content/verification/session_verification.rs
index 27a4640b0..9799ae666 100644
--- a/src/session/content/verification/session_verification.rs
+++ b/src/session/content/verification/session_verification.rs
@@ -251,7 +251,6 @@ impl SessionVerification {
             let verification_list = session.verification_list();
             let request = if let Some(request) = verification_list.get_session() {
                 debug!("Use session verification started by another session");
-                request.set_force_current_session(true);
                 request
             } else {
                 let request = IdentityVerification::create(&session, None).await;
@@ -259,6 +258,8 @@ impl SessionVerification {
                 verification_list.add(request.clone());
                 request
             };
+
+            request.set_force_current_session(true);
             obj.set_request(Some(request));
         }));
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]