mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 02:46:29 +03:00
don't start io on unconfigured context
This commit is contained in:
committed by
holger krekel
parent
14ab3c8651
commit
330665afbe
@@ -195,6 +195,11 @@ impl Context {
|
||||
return;
|
||||
}
|
||||
|
||||
if let Ok(false) = self.is_configured().await {
|
||||
warn!(self, "can not start io on a context that is not configured");
|
||||
return;
|
||||
}
|
||||
|
||||
{
|
||||
let l = &mut *self.inner.scheduler.write().await;
|
||||
if let Err(err) = l.start(self.clone()).await {
|
||||
|
||||
Reference in New Issue
Block a user