fix: allow to add transports even when I/O is running

This commit is contained in:
link2xt
2026-02-11 20:06:44 +00:00
parent c475882727
commit e92127511a

View File

@@ -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."