Added an isRunning() method so that other classes can

check if the server is still running.
This commit is contained in:
Paul Speed 2015-11-15 02:14:26 -05:00
parent 17df399f68
commit e832ad5c94

@ -67,6 +67,10 @@ public class TestChatServer {
server.addConnectionListener(new ChatConnectionListener()); server.addConnectionListener(new ChatConnectionListener());
} }
public boolean isRunning() {
return isRunning;
}
public synchronized void start() { public synchronized void start() {
if( isRunning ) { if( isRunning ) {
return; return;