Browse Source

Fix sending of command to just one server

Mark Mine 23 years ago
parent
commit
e21f1eae8b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      direct/src/cluster/ClusterClient.py

+ 3 - 2
direct/src/cluster/ClusterClient.py

@@ -117,8 +117,9 @@ class ClusterClient(DirectObject.DirectObject):
         # Execute remotely
         # Execute remotely
         if serverNum is not None:
         if serverNum is not None:
             self.serverList[serverNum].sendCommandString(commandString)
             self.serverList[serverNum].sendCommandString(commandString)
-        for server in self.serverList:
-            server.sendCommandString(commandString)
+        else:
+            for server in self.serverList:
+                server.sendCommandString(commandString)
         if fLocally:
         if fLocally:
             # Execute locally
             # Execute locally
             exec( commandString, __builtins__ )
             exec( commandString, __builtins__ )