don't start io on unconfigured context

This commit is contained in:
Simon Laux
2022-04-16 17:48:16 +02:00
committed by holger krekel
parent 14ab3c8651
commit 330665afbe
+5
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 {