Skip to content

Commit

Permalink
fix(plc4j/eip): Remove unnecessary Thread.sleep (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
schaebo committed Feb 2, 2024
1 parent 5cbce4c commit 7ca7602
Showing 1 changed file with 2 additions and 8 deletions.
Expand Up @@ -473,12 +473,6 @@ private CompletableFuture<PlcReadResponse> readWithoutMessageRouter(PlcReadReque
// Finish the request-transaction.
transaction.endRequest();
}));
// TODO: Remove this ...
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
} catch (SerializationException e) {
e.printStackTrace();
}
Expand Down Expand Up @@ -800,7 +794,7 @@ private PlcValue parsePlcValue(EipTag tag, ByteBuf data, CIPDataTypeCode type) {
case LINT:
list.add(new PlcLINT(Long.reverseBytes(data.getLong(index))));
index += type.getSize();
break;
break;
case BOOL:
list.add(new PlcBOOL(data.getBoolean(index)));
index += type.getSize();
Expand Down Expand Up @@ -853,7 +847,7 @@ private PlcValue parsePlcValue(EipTag tag, ByteBuf data, CIPDataTypeCode type) {
// This is a different type of STRUCTURED data
}
return null;
}
}
default:
return null;
}
Expand Down

0 comments on commit 7ca7602

Please sign in to comment.