events.clear();
}
+ if (output.checkError()) {
+ // This is EOF.
+ done = true;
+ }
+
// Wait 20 millis for more data
Thread.sleep(20);
}
done = true;
}
} // while ((done == false) && (stopReaderThread == false))
- // System.err.println("*** run() exiting..."); System.err.flush();
+
+ // TODO: pass an event up to TApplication to tell it this Backend is
+ // done.
+
+ System.err.println("*** run() exiting..."); System.err.flush();
}
// ------------------------------------------------------------------------