X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altoslib%2FAltosIgnite.java;h=fc9599b65ce4cb8aa44ed66dc31011240d5b5b7f;hb=0484ca97828da0d56be7bf395fa4a4b09c591e02;hp=e89f1b65bdb10aecc5b7e14fbd26cc41525770ae;hpb=b02c17b26e028a6f3a46781211a86a18272da4d0;p=fw%2Faltos diff --git a/altoslib/AltosIgnite.java b/altoslib/AltosIgnite.java index e89f1b65..fc9599b6 100644 --- a/altoslib/AltosIgnite.java +++ b/altoslib/AltosIgnite.java @@ -15,7 +15,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -package org.altusmetrum.AltosLib; +package org.altusmetrum.altoslib_2; import java.io.*; import java.util.concurrent.*; @@ -64,6 +64,7 @@ public class AltosIgnite { } } + /* private boolean get_string(String line, String label, string_ref s) { if (line.startsWith(label)) { String quoted = line.substring(label.length()).trim(); @@ -78,6 +79,7 @@ public class AltosIgnite { return false; } } + */ private int status(String status_name) { if (status_name.equals("unknown")) @@ -139,7 +141,7 @@ public class AltosIgnite { } } - public void fire(int igniter) { + public void fire(int igniter) throws InterruptedException { if (link == null) return; try { @@ -152,21 +154,14 @@ public class AltosIgnite { link.printf("i DoIt drogue\n"); break; } - } catch (InterruptedException ie) { } catch (TimeoutException te) { } finally { - try { - stop_link(); - } catch (InterruptedException ie) { - } + stop_link(); } } - public void close() { - try { - stop_link(); - } catch (InterruptedException ie) { - } + public void close() throws InterruptedException { + stop_link(); link.close(); link = null; }