transcriberbin: Don't notify signal inside lock

That can potentially cause deadlock
This commit is contained in:
Seungha Yang 2022-03-10 20:10:30 +09:00 committed by Arun Raghavan
parent 76f09860b1
commit 801d928aac

View file

@ -921,8 +921,8 @@ impl BinImpl for TranscriberBin {
drop(s);
let mut settings = self.settings.lock().unwrap();
settings.passthrough = true;
bin.notify("passthrough");
drop(settings);
bin.notify("passthrough");
bin.call_async(move |bin| {
let thiz = bin.imp();
thiz.block_and_update(bin, true);