Skip to content

Commit

Permalink
Skip last unnecessary sleep.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallard committed May 29, 2016
1 parent ecf7f65 commit b68f55f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions adhoc/issue121_03.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ def publish
@client.publish(@queue, mo, hs)
end # if @block

puts "PUB: start user sleep"
sleep @tslt # see issue discussion
puts "PUB: end user sleep"
if nm < @nmsgs
puts "PUB: start user sleep"
sleep @tslt # see issue discussion
puts "PUB: end user sleep"
end
$stdout.flush
end # @nmsgs.times do

Expand Down

0 comments on commit b68f55f

Please sign in to comment.