Mercurial > 510Connectbot
changeset 219:c438c2ff0052
remove unnecessary socket run dry flagging
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 08 Jul 2014 10:46:40 -0700 |
parents | 2bdc413623b2 |
children | 4fdf6b5a6f43 61ed3984fc1d |
files | src/org/tn5250j/framework/tn5250/DataStreamProducer.java src/org/tn5250j/framework/tn5250/tnvt.java |
diffstat | 2 files changed, 0 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/DataStreamProducer.java Tue Jul 08 10:35:14 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/DataStreamProducer.java Tue Jul 08 10:46:40 2014 -0700 @@ -146,12 +146,6 @@ int i = 0; while (!done) { - try { - if (bin.available() == 0) dsq.put(new Integer(0)); // trigger buffer.testChanged() - } - catch (Exception ex) { - Log.w(TAG, "readIncoming error " + ex.getMessage()); - } i = bin.read(); // WVL - LDC : 16/07/2003 : TR.000345 @@ -224,12 +218,6 @@ if (negotiate) { // get the negotiation option - try { - if (bin.available() == 0) dsq.put(new Integer(0)); // trigger buffer.testChanged() - } - catch (Exception ex) { - Log.w(TAG, "readIncoming error " + ex.getMessage()); - } baosin.write(bin.read()); vt.negotiate(rBytes); return null;
--- a/src/org/tn5250j/framework/tn5250/tnvt.java Tue Jul 08 10:35:14 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/tnvt.java Tue Jul 08 10:46:40 2014 -0700 @@ -983,12 +983,6 @@ while (keepTrucking) { try { Object e = dsq.take(); - - if ((e instanceof Integer) && ((Integer)e == 0)) { - //buffer.testChanged(); - continue; - }; - bk.initialize((byte[])e); } catch (InterruptedException ie) {