mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-22 23:19:37 +00:00
Eliminate accidental deadlock.
This commit is contained in:
parent
ba90cd66ba
commit
88ec7db075
|
@ -77,7 +77,6 @@ impl WinRT {
|
|||
let mut callbacks = CALLBACKS.lock().unwrap();
|
||||
let callbacks = callbacks.get_mut(&self.id).unwrap();
|
||||
if let Some(callback) = callbacks.utterance_stop.as_mut() {
|
||||
let mappings = UTTERANCE_MAPPINGS.lock().unwrap();
|
||||
for mapping in &*mappings {
|
||||
callback(mapping.2);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user