comparison src/org/tn5250j/framework/tn5250/DataStreamProducer.java @ 98:16e023784917

protect both read calls with test for blocking
author Carl Byington <carl@five-ten-sg.com>
date Tue, 17 Jun 2014 11:35:01 -0700
parents 8181cb01c64d
children eda03b809f48
comparison
equal deleted inserted replaced
95:e1c43d50f9d8 98:16e023784917
237 dump(rBytes); 237 dump(rBytes);
238 } 238 }
239 239
240 if (negotiate) { 240 if (negotiate) {
241 // get the negotiation option 241 // get the negotiation option
242 if (bin.available() == 0) buffer.testChanged();
242 baosin.write(bin.read()); 243 baosin.write(bin.read());
243 vt.negotiate(rBytes); 244 vt.negotiate(rBytes);
244 245
245 return null; 246 return null;
246 } 247 }