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:
bjoern
2022-05-04 18:09:55 +02:00
committed by GitHub
parent e56c261c73
commit 9a0a3c4b00

View File

@@ -378,7 +378,7 @@ impl Scheduler {
/// Start the scheduler, returns error if it is already running.
pub async fn start(&mut self, ctx: Context) -> Result<()> {
if self.is_running() {
bail!("scheduler is already stopped");
bail!("scheduler is already started");
}
let (mvbox, mvbox_handlers) = ImapConnectionState::new(&ctx).await?;