diff src/org/tn5250j/framework/tn5250/DataStreamProducer.java @ 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 3e68cb17c0b6
children 7ac1a0b02f44
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;