Commit a2f51487 authored by Tom Evans's avatar Tom Evans Committed by tevans

OF-668: Create single buffered reader for terminator task

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13655 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0db7ec7a
......@@ -894,8 +894,8 @@ public class XMPPServer {
* via the launcher, especially in Windows.
*/
private class Terminator extends TimerTask {
private BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
public void run() {
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
try {
if (stdin.ready()) {
if (EXIT.equalsIgnoreCase(stdin.readLine())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment