altoslib: Pass InterruptedException up the stack instead of hiding it
authorKeith Packard <keithp@keithp.com>
Wed, 18 Dec 2013 09:14:11 +0000 (01:14 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 18 Dec 2013 09:14:11 +0000 (01:14 -0800)
commite26306c9350ef1d107d4257ef1c09d15165c9154
treed7983c6a04c54b3307d6fc2699dad4fa21d8bde0
parent18852efa108ba6e6e69dfd5076d4f4c01f62b4ef
altoslib: Pass InterruptedException up the stack instead of hiding it

When interrupting a thread that is talking to a serial device, it's
important not to have that thread discard the InterruptedException so
that it will actually terminate. This patch removes a bunch of places
that were discarding InterruptedExceptions and lets higher level code
see them so that they can exit cleanly.

Signed-off-by: Keith Packard <keithp@keithp.com>
27 files changed:
altoslib/AltosDebug.java
altoslib/AltosFlash.java
altoslib/AltosFlightReader.java
altoslib/AltosGPS.java
altoslib/AltosIMU.java
altoslib/AltosIdleFetch.java
altoslib/AltosIdleMonitor.java
altoslib/AltosIgnite.java
altoslib/AltosLink.java
altoslib/AltosLog.java
altoslib/AltosMag.java
altoslib/AltosMma655x.java
altoslib/AltosMs5607.java
altoslib/AltosProgrammer.java
altoslib/AltosSelfFlash.java
altoslib/AltosSensorEMini.java
altoslib/AltosSensorMega.java
altoslib/AltosSensorMetrum.java
altoslib/AltosSensorTM.java
altoslib/AltosSensorTMini.java
altoslib/AltosStateUpdate.java
altoslib/AltosTelemetryReader.java
altosui/AltosBTManage.java
altosui/AltosConfig.java
altosui/AltosFlashUI.java
altosui/AltosIdleMonitorUI.java
altosui/AltosSerial.java