mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 17:06:35 +03:00
fix "scheduler already started" log entry (#3294)
i was wondering mainly about the whole line "Failed to start IO: scheduler is already stopped". i think it has to be "already started" and not "already stopped".
This commit is contained in:
@@ -378,7 +378,7 @@ impl Scheduler {
|
|||||||
/// Start the scheduler, returns error if it is already running.
|
/// Start the scheduler, returns error if it is already running.
|
||||||
pub async fn start(&mut self, ctx: Context) -> Result<()> {
|
pub async fn start(&mut self, ctx: Context) -> Result<()> {
|
||||||
if self.is_running() {
|
if self.is_running() {
|
||||||
bail!("scheduler is already stopped");
|
bail!("scheduler is already started");
|
||||||
}
|
}
|
||||||
|
|
||||||
let (mvbox, mvbox_handlers) = ImapConnectionState::new(&ctx).await?;
|
let (mvbox, mvbox_handlers) = ImapConnectionState::new(&ctx).await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user