Skip to content

Commit aff6075

Browse files
committed
release: 22.0.2
1 parent eb700f7 commit aff6075

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

CHANGELOG.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ The version should always be in sync with the [GUI](https://github.com/software-
77

88
- The major version `x` corresponds to the year of the contest and thus only changes once a year
99
- `y` is bumped for any major updates or backwards-incompatible changes.
10-
A `y` version of 0 indicates the beta of the current year.
10+
A `y` version of 0 marks the beta of the current year.
1111

1212
## [22.1.0](https://github.com/software-challenge/backend/commits/22.1.0) - 2021-09
1313

14-
## [22.0.2](https://github.com/software-challenge/backend/commits/22.0.2) - 2021-07
14+
## [22.0.2](https://github.com/software-challenge/backend/commits/22.0.2) - 2021-07-16
1515
- Update documentation links
16-
- Various improvements in tests
16+
- Various improvements around testing
1717
### Protocol
1818
- Reworked GameResult XML (add player information, include winner as team)
19-
- Simplified Player XML (team as attribute)
20-
- Can join without specifying a gameType
21-
- Removed PlayerScoreRequest and TestModeRequest - add up the GameResults instead ([#385](https://github.com/software-challenge/backend/pull/385))
19+
- Simpler Player XML (team as attribute)
20+
- Join without specifying a gameType
21+
- Removed test mode - add up the GameResults instead ([#385](https://github.com/software-challenge/backend/pull/385))
22+
- Do not send repeated MoveRequests when pausing/unpausing
23+
- Stop terminating client connections upon protocol issues ([6c6d6fa51](https://github.com/software-challenge/backend/commit/6c6d6fa51af71eea3914303cb886bd8b78be53a0))
2224

2325
## [22.0.1](https://github.com/software-challenge/backend/commits/22.0.1) - 2021-06-25
2426
### Ostseeschach

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
socha.gameName=ostseeschach
22
socha.version.year=22
33
socha.version.minor=00
4-
socha.version.patch=01
4+
socha.version.patch=02

gradle/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tasks {
6666
val release by creating {
6767
dependsOn(clean, check)
6868
group = "distribution"
69-
description = "Prepares a new Release by bumping the version and creating a commit with a git tag of the new version"
69+
description = "Prepares a new Release by bumping the version and creating a commit with a git tag for the new version"
7070
doLast {
7171
fun edit(original: String, version: String, new: Int) =
7272
if (original.startsWith("socha.version.$version"))

helpers/test-client/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ tasks {
3030
dependsOn(createStartScripts)
3131
doFirst {
3232
manifest.attributes["Class-Path"] =
33-
configurations.default.get().map { "lib/" + it.name }
33+
configurations.default.get()
34+
.map { "lib/" + it.name }
3435
.plus("server.jar")
3536
.joinToString(" ")
3637
copy {

sdk/src/main/server-api/sc/networking/clients/AdminClient.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import sc.protocol.requests.PrepareGameRequest
55
import sc.protocol.room.ObservableRoomMessage
66

77
class AdminClient(private val client: LobbyClient) {
8+
val closed: Boolean
9+
get() = client.isClosed
810

911
fun prepareGame(request: PrepareGameRequest) {
1012
client.send(request)

server/src/main/java/sc/server/network/Client.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import org.jetbrains.annotations.NotNull;
44
import org.slf4j.Logger;
55
import org.slf4j.LoggerFactory;
6-
import sc.api.plugins.exceptions.GameLogicException;
7-
import sc.api.plugins.exceptions.NotYourTurnException;
86
import sc.api.plugins.exceptions.RescuableClientException;
97
import sc.networking.INetworkInterface;
108
import sc.networking.UnprocessedPacketException;
@@ -100,9 +98,9 @@ protected void onDisconnect(DisconnectCause cause) {
10098
@Override
10199
protected void onObject(@NotNull ProtocolPacket message) throws UnprocessedPacketException {
102100
/*
103-
* NOTE that this method is called in the receiver thread. Messages
104-
* should only be passed to listeners. No callbacks should be invoked
105-
* directly in the receiver thread.
101+
* NOTE that this method is called in the receiver thread.
102+
* Messages should only be passed to listeners.
103+
* No callbacks should be invoked directly in the receiver thread.
106104
*/
107105
Collection<RescuableClientException> errors = new ArrayList<>();
108106

0 commit comments

Comments
 (0)