# HG changeset patch # User Carl Byington # Date 1413857572 25200 # Node ID e856ecf87b1037214421c56f6c328d2d0e7475b2 # Parent aeb8c2e6d83a616041834376747132f1f90f2413 Backed out changeset aeb8c2e6d83a diff -r aeb8c2e6d83a -r e856ecf87b10 src/com/five_ten_sg/connectbot/service/TerminalMonitor.java --- a/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java Wed Oct 15 18:03:27 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java Mon Oct 20 19:12:52 2014 -0700 @@ -95,17 +95,17 @@ } } catch (InterruptedException e) { - if (!is_closing) Log.e(TAG, "exception in MyWriter.run()", e); + if (!is_closing) Log.e(TAG, "exception in monitorWrite()", e); } catch (IOException e) { - Log.i(TAG, "exception in MyWriter.run(), monitor died or closed the socket", e); + Log.i(TAG, "exception in monitorWrite(), monitor died or closed the socket", e); } try { monitor_out.close(); } - catch (IOException e) { - Log.e(TAG, "exception in MyWriter.run() closing output stream", e); + catch (IOException ee) { + Log.e(TAG, "exception in monitorWrite() closing output stream", ee); } monitor_out = null; } @@ -348,14 +348,9 @@ public void monitorWrite(char cmd, char[] c) { - try { - c[0] = (char)(c.length - 1); // number of chars following - c[1] = cmd; - pending_commands.put(c); - } - catch (InterruptedException e) { - Log.e(TAG, "exception in monitorWrite()", e); - } + c[0] = (char)(c.length - 1); // number of chars following + c[1] = cmd; + pending_commands.put(c); }; public void resetWatch() {