Skip to content

Commit

Permalink
fix task sleeping twice bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ivinjabraham committed Feb 10, 2025
1 parent 4a88336 commit 6925f9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ async fn schedule_task(ctx: SerenityContext, task: Box<dyn Task>) {
tokio::time::sleep(next_run_in).await;

debug!("Running task {}", task.name());
tokio::time::sleep(next_run_in).await;
if let Err(e) = task.run(ctx.clone()).await {
error!("Could not run task {}, error {}", task.name(), e);
}
Expand Down

0 comments on commit 6925f9e

Please sign in to comment.