mirror of
https://github.com/chatmail/core.git
synced 2026-05-06 16:36:59 +03:00
fix: allow to add transports even when I/O is running
This commit is contained in:
@@ -124,10 +124,6 @@ impl Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) async fn add_transport_inner(&self, param: &mut EnteredLoginParam) -> Result<()> {
|
pub(crate) async fn add_transport_inner(&self, param: &mut EnteredLoginParam) -> Result<()> {
|
||||||
ensure!(
|
|
||||||
!self.scheduler.is_running().await,
|
|
||||||
"cannot configure, already running"
|
|
||||||
);
|
|
||||||
ensure!(
|
ensure!(
|
||||||
self.sql.is_open().await,
|
self.sql.is_open().await,
|
||||||
"cannot configure, database not opened."
|
"cannot configure, database not opened."
|
||||||
|
|||||||
Reference in New Issue
Block a user