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
parent 9e6fc2983f
commit aac7e52d87

View file

@ -920,8 +920,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);