mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
fix: send mock values to unlock and stop workers
This commit is contained in:
parent
6fe92b9e8e
commit
97be3cf4ce
1 changed files with 5 additions and 1 deletions
|
@ -60,7 +60,11 @@ impl OperationController {
|
||||||
|
|
||||||
pub fn stop(&self) -> bool {
|
pub fn stop(&self) -> bool {
|
||||||
match self.stop.send(false) {
|
match self.stop.send(false) {
|
||||||
Ok(()) => true,
|
Ok(()) => {
|
||||||
|
ignore_and_log(self.changed_notifier.send(0..0), "unlocking downstream for stop");
|
||||||
|
ignore_and_log(self.notifier.send(OperationSeq::default()), "unlocking upstream for stop");
|
||||||
|
true
|
||||||
|
},
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("could not send stop signal to workers: {}", e);
|
error!("could not send stop signal to workers: {}", e);
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in a new issue