mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 08:26:30 +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<()> {
|
||||
ensure!(
|
||||
!self.scheduler.is_running().await,
|
||||
"cannot configure, already running"
|
||||
);
|
||||
ensure!(
|
||||
self.sql.is_open().await,
|
||||
"cannot configure, database not opened."
|
||||
|
||||
Reference in New Issue
Block a user