Skip to content

Commit

Permalink
Remember to Return a response!
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyCoolSlug committed Nov 30, 2023
1 parent 6f08ba9 commit 1592622
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daemon/src/primary_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,14 @@ pub async fn spawn_usb_handler(
settings.set_sample_gain_percent(sample, gain).await;
let _ = sender.send(Ok(()));
}
DaemonCommand::ApplySampleChange() => {
DaemonCommand::ApplySampleChange => {
// Change is committed, save it..
settings.save().await;

// Resend the value.
files = update_files(files, PathTypes::Samples, &mut file_manager, &settings).await;
change_found = true;
let _ = sender.send(Ok(()));
}
}
},
Expand Down

0 comments on commit 1592622

Please sign in to comment.