public boolean isRunning(){
  return mThread != null && mThread.isAlive();
}

public boolean isRunning ( ) { return mThread != null && mThread . isAlive ( ) ; }
indicates whether the server is currently running .
