Skip to content

Commit

Permalink
fix consumer listen not stop after listen wait timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
archfish committed Dec 13, 2019
1 parent 7ceca86 commit 0ba0bdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pulsar_sdk/consumer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def listen(autoack = false)
flow if all_readed?

cmd, msg = receive(@listen_wait)
next if msg.nil?
return if msg.nil?

result = yield cmd, msg

Expand Down
2 changes: 1 addition & 1 deletion lib/pulsar_sdk/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module PulsarSdk
VERSION = "0.6.6"
VERSION = "0.6.7"
end

0 comments on commit 0ba0bdb

Please sign in to comment.