Skip to content

Commit

Permalink
fix: deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed May 17, 2024
1 parent 0f20e4a commit c6f698d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uplink/src/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async fn disable_downloader(State(state): State<StateHandle>) -> impl IntoRespon
async fn enable_downloader(State(state): State<StateHandle>) -> impl IntoResponse {
info!("Downloader started");
let mut is_disabled = state.downloader_disable.lock().unwrap();
if *state.downloader_disable.lock().unwrap() {
if *is_disabled {
*is_disabled = false;
StatusCode::OK
} else {
Expand Down

0 comments on commit c6f698d

Please sign in to comment.