altosuilib: Don't drain voice when terminating display
authorKeith Packard <keithp@keithp.com>
Mon, 2 Oct 2017 20:55:57 +0000 (13:55 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 2 Oct 2017 23:49:56 +0000 (16:49 -0700)
If the voice thread is wedged (as with PulseAudio and un-patched
freetts 1.2.2), we'll get stuck here and the UI will freeze up.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosDisplayThread.java

index 3fcc02dac353bba782fb15b85218c69d7b20fcd3..5e691ac4c47683bb603ac163f28c4665f2206b2e 100644 (file)
@@ -159,9 +159,6 @@ public class AltosDisplayThread extends Thread {
                                        report(false);
                                }
                        } catch (InterruptedException ie) {
-                               try {
-                                       voice.drain();
-                               } catch (InterruptedException iie) { }
                        }
                }