altosui: Deal with connect failure in AltosConfigTD
authorKeith Packard <keithp@keithp.com>
Fri, 2 Sep 2016 21:13:25 +0000 (16:13 -0500)
committerKeith Packard <keithp@keithp.com>
Fri, 2 Sep 2016 21:13:25 +0000 (16:13 -0500)
commit8bbef0c7039f4a0c6ac368fd994c2e52d84d293c
tree8a613e100589c90b2e2eddb730aa693e594d606a
parentb2d013aef5b76ff527e8174dff7f6ffe0dfaefae
altosui: Deal with connect failure in AltosConfigTD

When the USB connection times out, abort any pending operations and
clean up the thread correctly. Also, deal with the serial line being
closed by checking for null.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosConfigTD.java