Skip to content

Commit 717bb06

Browse files
author
Peter Kohout
committed
now private handler messages are used to update machine client state.
1 parent 7aab81f commit 717bb06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88

99
group = 'io.github.robocup-logistics'
1010
archivesBaseName = "java-sdk"
11-
version = '0.1.17.11'
11+
version = '0.1.18'
1212

1313
description = ""
1414

src/main/java/com/rcll/refbox/RefboxClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public RefboxClient(@NonNull RefboxConnectionConfig connectionConfig,
5252
this.robotClient = Optional.empty();
5353
this.explorationClient = Optional.empty();
5454
this.orderService = Optional.empty();
55-
Consumer<MachineInfoProtos.MachineInfo> oldMachineInfoCallback = publicHandler.getMachineInfoCallback();
56-
publicHandler.setMachineInfoCallback(machineInfo -> {
55+
Consumer<MachineInfoProtos.MachineInfo> oldMachineInfoCallback = privateHandler.getMachineInfoCallback();
56+
privateHandler.setMachineInfoCallback(machineInfo -> {
5757
machineClient.ifPresent(m -> m.update(machineInfo));
5858
oldMachineInfoCallback.accept(machineInfo);
5959
inProduction = true;

0 commit comments

Comments
 (0)