synchronisation
This commit is contained in:
@@ -14,7 +14,7 @@ public class CommandExecutor {
|
|||||||
this.outputSystem = null;
|
this.outputSystem = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandResult executeCommand(Command command) {
|
public synchronized CommandResult executeCommand(Command command) {
|
||||||
assert this.game != null : "No input game specified !";
|
assert this.game != null : "No input game specified !";
|
||||||
assert this.outputSystem != null : "No output system specified !";
|
assert this.outputSystem != null : "No output system specified !";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user