1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-07-22 05:19:38 +00:00

Eliminate accidental deadlock.

This commit is contained in:
Nolan Darilek 2020-10-08 09:44:46 -05:00
parent ba90cd66ba
commit 88ec7db075

View File

@ -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);
}