mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 17:06:28 +03:00
start setting up new scheduler
This commit is contained in:
@@ -84,8 +84,9 @@ pub async fn dc_get_oauth2_access_token(
|
||||
regenerate: bool,
|
||||
) -> Option<String> {
|
||||
if let Some(oauth2) = Oauth2::from_address(addr) {
|
||||
let lock = context.oauth2_critical.clone();
|
||||
let _l = lock.lock().await;
|
||||
// TODO: FIXME
|
||||
// let lock = context.oauth2_critical.clone();
|
||||
// let _l = lock.lock().await;
|
||||
|
||||
// read generated token
|
||||
if !regenerate && !is_expired(context).await {
|
||||
|
||||
Reference in New Issue
Block a user