mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 11:26:29 +03:00
Use scheduler.is_running()
This commit is contained in:
@@ -374,7 +374,7 @@ pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> {
|
||||
"Cannot import backups to accounts in use."
|
||||
);
|
||||
ensure!(
|
||||
context.scheduler.read().await.is_none(),
|
||||
!context.scheduler.is_running().await,
|
||||
"cannot import backup, IO is running"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user