2
0
Эх сурвалжийг харах

Added an isRunning() method so that other classes can
check if the server is still running.

Paul Speed 9 жил өмнө
parent
commit
e832ad5c94

+ 4 - 0
jme3-examples/src/main/java/jme3test/network/TestChatServer.java

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