WorkerTask
187188189190191192193194195196197198199200201202
/** * Closes all open sockets and stops the internal server thread that * processes messages. */ public void close() { WorkerTask st = server; if (st != null) { st.terminate(); st.interrupt(); try { st.join(); } catch (InterruptedException ex) { logger.warn(ex); } server = null;
1070107110721073107410751076107710781079
} } public void close() { stop = true; WorkerTask st = server; if (st != null) { st.terminate(); } }