Skip to content

Commit

Permalink
Added an isRunning() method so that other classes can
Browse files Browse the repository at this point in the history
check if the server is still running.
  • Loading branch information
pspeed42 committed Nov 15, 2015
1 parent 17df399 commit e832ad5
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -67,6 +67,10 @@ public TestChatServer() throws IOException {
server.addConnectionListener(new ChatConnectionListener());
}

public boolean isRunning() {
return isRunning;
}

public synchronized void start() {
if( isRunning ) {
return;
Expand Down

0 comments on commit e832ad5

Please sign in to comment.