Skip to content

Commit 6925f9e

Browse files
committed
fix task sleeping twice bug
1 parent 4a88336 commit 6925f9e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/scheduler.rs

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ async fn schedule_task(ctx: SerenityContext, task: Box<dyn Task>) {
4040
tokio::time::sleep(next_run_in).await;
4141

4242
debug!("Running task {}", task.name());
43-
tokio::time::sleep(next_run_in).await;
4443
if let Err(e) = task.run(ctx.clone()).await {
4544
error!("Could not run task {}, error {}", task.name(), e);
4645
}

0 commit comments

Comments
 (0)