From: Keith Packard Date: Mon, 2 Oct 2017 20:55:57 +0000 (-0700) Subject: altosuilib: Don't drain voice when terminating display X-Git-Tag: 1.8.3~1^2~84 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=322c1abead39cb398380dff384cd274c19dd81dd altosuilib: Don't drain voice when terminating display 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 --- diff --git a/altosuilib/AltosDisplayThread.java b/altosuilib/AltosDisplayThread.java index 3fcc02da..5e691ac4 100644 --- a/altosuilib/AltosDisplayThread.java +++ b/altosuilib/AltosDisplayThread.java @@ -159,9 +159,6 @@ public class AltosDisplayThread extends Thread { report(false); } } catch (InterruptedException ie) { - try { - voice.drain(); - } catch (InterruptedException iie) { } } }