added TimeoutMessage
This commit is contained in:
@@ -149,6 +149,8 @@ public final class Game extends BaseState {
|
||||
LocalDateTime.ofInstant(Instant.ofEpochMilli(input.getTimeout()), ZoneId.systemDefault())
|
||||
);
|
||||
}
|
||||
} else if (observerMessage instanceof TimeoutMessage) {
|
||||
client.println("Timed out.");
|
||||
} else {
|
||||
throw new AssertionError("Unknown observer message " + observerMessage.getClass().getSimpleName() + "");
|
||||
}
|
||||
|
Reference in New Issue
Block a user