Added an isRunning() method so that other classes can
check if the server is still running.
This commit is contained in:
parent
17df399f68
commit
e832ad5c94
@ -67,6 +67,10 @@ public class TestChatServer {
|
||||
server.addConnectionListener(new ChatConnectionListener());
|
||||
}
|
||||
|
||||
public boolean isRunning() {
|
||||
return isRunning;
|
||||
}
|
||||
|
||||
public synchronized void start() {
|
||||
if( isRunning ) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user