Skip to content

Commit

Permalink
fix: unwrap fail when logout.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Feb 18, 2025
1 parent 1e1ec86 commit 8ffd3bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,10 @@ impl APIClient {
fn need_logout(&self) -> bool {
(self.session_token_info.is_some()
|| self.session_state.lock().need_keep_alive.unwrap_or(false))
&& !self
&& self
.closed
.compare_exchange(false, true, Ordering::Relaxed, Ordering::Relaxed)
.unwrap()
.is_ok()
}

async fn refresh_session_token(
Expand Down

0 comments on commit 8ffd3bf

Please sign in to comment.