don't start io on unconfigured context

This commit is contained in:
Simon Laux
2021-09-07 21:59:46 +02:00
committed by holger krekel
parent 14ab3c8651
commit 330665afbe

View File

@@ -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 {