Skip to content

Commit

Permalink
daemon: fix double SIGINT handlers when pulling
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed Jun 6, 2024
1 parent e1dede5 commit 8cd7246
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [Unreleased]

### [0.2.28] - 2024-06-07

- fix daemon: double SIGINT handlers when pulling

## [0.2.27] - 2024-06-07

- improve follow [this](https://users.rust-lang.org/t/i-just-wrote-the-hardest-code-in-my-life-any-improvements/112596)
Expand Down
2 changes: 1 addition & 1 deletion fav_cli/src/bili/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ pub(super) async fn daemon(sets: &mut BiliSets, interval: u64) -> FavCoreResult<
fire = false;
}
_ = tokio::time::sleep(duration), if !fire => fire = true,
_ = tokio::signal::ctrl_c() => {
_ = tokio::signal::ctrl_c(), if !fire => {
info!("Received Ctrl-C, exiting.");
break;
}
Expand Down

0 comments on commit 8cd7246

Please sign in to comment.