Skip to content

Commit

Permalink
Merge pull request #240 from quarkiverse/bugfix/subscribe
Browse files Browse the repository at this point in the history
Fixed not closing subscriber when connection lost
  • Loading branch information
kjeldpaw authored Dec 4, 2024
2 parents 3a7653f + a9cd5d9 commit d712c12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/project.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
release:
current-version: "3.17.0"
current-version: "3.17.1"
next-version: "3.18.0-SNAPSHOT"

2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/includes/attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:project-version: 3.17.0
:project-version: 3.17.1

:examples-dir: ./../examples/
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Multi<Message<P>> subscribe() {
ExecutorService pullExecutor = Executors.newSingleThreadExecutor(JetstreamWorkerThread::new);
return Multi.createBy().repeating()
.uni(this::readNextMessage)
.whilst(message -> !closed.get())
.whilst(message -> true)
.runSubscriptionOn(pullExecutor)
.emitOn(context::runOnContext)
.flatMap(message -> createMulti(message.orElse(null), traceEnabled, payloadType, context));
Expand Down

0 comments on commit d712c12

Please sign in to comment.