Skip to content

Commit

Permalink
Fix BridgeHttpImpl.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn0w3y authored Jan 13, 2025
1 parent e1418f4 commit 99a93fe
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ private void handleEvent(Event event) {
final var item = this.cycleEndpoints.poll();
synchronized (item) {
if (item.isRunning()) {

if (!this.cycleEndpoints.offer(item.resetTo(1)))

continue;
if (!this.cycleEndpoints.offer(item.resetTo(1))) {
this.log.warn("Unable to re-add " + item + " to queue again.");

Check warning on line 233 in io.openems.edge.bridge.http/src/io/openems/edge/bridge/http/BridgeHttpImpl.java

View check run for this annotation

Codecov / codecov/patch

io.openems.edge.bridge.http/src/io/openems/edge/bridge/http/BridgeHttpImpl.java#L233

Added line #L233 was not covered by tests
}
continue;
}

item.setRunning(true);
Expand Down

0 comments on commit 99a93fe

Please sign in to comment.