aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/background/worker.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/background/worker.rs b/src/util/background/worker.rs
index 1d4eb3ea..f933fc06 100644
--- a/src/util/background/worker.rs
+++ b/src/util/background/worker.rs
@@ -193,7 +193,7 @@ impl WorkerHandler {
WorkerStatus::Idle => {
if *self.stop_signal.borrow() {
select! {
- new_st = self.worker.wait_for_work(&mut self.stop_signal_worker) => {
+ new_st = self.worker.wait_for_work(&self.stop_signal_worker) => {
self.status = new_st;
}
_ = tokio::time::sleep(Duration::from_secs(1)) => {
@@ -202,7 +202,7 @@ impl WorkerHandler {
}
} else {
select! {
- new_st = self.worker.wait_for_work(&mut self.stop_signal_worker) => {
+ new_st = self.worker.wait_for_work(&self.stop_signal_worker) => {
self.status = new_st;
}
_ = self.stop_signal.changed() => {