# | Line 31 | Line 31 | public class DataReader extends Thread { | |
---|---|---|
31 | ||
32 | public void run() { | |
33 | boolean running = true; | |
34 | < | while (running){ |
35 | < | try { |
36 | < | |
34 | > | try { |
35 | > | while (_inBound.ready()) { |
36 | _xml = _inBound.readLine(); | |
37 | synchronized (this) { | |
38 | notifyAll(); | |
39 | } | |
40 | } | |
41 | < | catch (IOException e) { |
41 | > | } catch (IOException e) { |
42 | System.err.println("This DataReader thread has been shut down as an exception occured: "+e); | |
43 | running = false; | |
44 | return; | |
46 | – | } |
45 | } | |
46 | } | |
47 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |