Skip to content

Commit

Permalink
Moved bugfix (rev. 71a8438) into a better place (#238, #271, #290)
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed Oct 12, 2023
1 parent ca79985 commit e4d4798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dz3r-model/src/main/java/net/sf/dz3r/model/Zone.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ public Flux<Signal<ZoneStatus, String>> compute(Flux<Signal<Double, String>> in)
// - the feedback, repeats the last sensor reading upon changing zone settings and forces a new signal to be emitted here

// Record the signal so the feedback flux can pick it up
var recorded = in.doOnNext(this::recordSignal);
var recorded = in
.doOnNext(this::recordSignal)
.doOnComplete(feedbackSink::tryEmitComplete);

var combined = Flux.merge(recorded, feedbackFlux);

Expand Down Expand Up @@ -300,8 +302,6 @@ public void close() throws Exception {
economizer.close();
}

feedbackSink.tryEmitComplete();

} finally {
logger.info("Shut down: {}", getAddress());
ThreadContext.pop();
Expand Down

0 comments on commit e4d4798

Please sign in to comment.