Mercurial > 510Connectbot
diff src/com/five_ten_sg/connectbot/service/TerminalBridge.java @ 15:1588e359a972
queue pending monitor commands until socket is open
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 29 May 2014 12:40:27 -0700 |
parents | 0ce5cc452d02 |
children | 01d939969b10 |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalBridge.java Thu May 22 10:46:17 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/service/TerminalBridge.java Thu May 29 12:40:27 2014 -0700 @@ -214,10 +214,10 @@ @Override public void write(byte[] b) { try { - if (b != null && transport != null) + if (b != null && transport != null) { if (monitor != null) monitor.hostData(b); - - transport.write(b); + transport.write(b); + } } catch (IOException e) { Log.e(TAG, "Problem writing outgoing data in vt320() thread", e); @@ -226,10 +226,10 @@ @Override public void write(int b) { try { - if (transport != null) + if (transport != null) { if (monitor != null) monitor.hostData(b); - - transport.write(b); + transport.write(b); + } } catch (IOException e) { Log.e(TAG, "Problem writing outgoing data in vt320() thread", e);