Mercurial > 510Connectbot
comparison src/org/tn5250j/framework/tn5250/tnvt.java @ 214:3e68cb17c0b6
socket runs dry sends flag to tnvt to call testChanged()
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 07 Jul 2014 15:09:22 -0700 |
parents | 6eab98e58bed |
children | 2d93d5063e3d |
comparison
equal
deleted
inserted
replaced
213:d198328918fe | 214:3e68cb17c0b6 |
---|---|
980 | 980 |
981 bk = new Stream5250(); | 981 bk = new Stream5250(); |
982 | 982 |
983 while (keepTrucking) { | 983 while (keepTrucking) { |
984 try { | 984 try { |
985 Object e = dsq.poll(0L, TimeUnit.SECONDS); | 985 Object e = dsq.take(); |
986 | 986 |
987 if (e == null) { | 987 if ((e instanceof Integer) && ((Integer)e == 0)) { |
988 buffer.testChanged(); | 988 buffer.testChanged(); |
989 e = dsq.take(); | |
990 }; | 989 }; |
991 | 990 |
992 bk.initialize((byte[])e); | 991 bk.initialize((byte[])e); |
993 } | 992 } |
994 catch (InterruptedException ie) { | 993 catch (InterruptedException ie) { |