Skip to content

Commit

Permalink
channel closing should be inside ensure block
Browse files Browse the repository at this point in the history
  • Loading branch information
kum-deepak committed Dec 20, 2018
1 parent ed561ab commit 933e981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/ruby-server/rpc-helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def self.serve(opts = {}, &compute)
main_channel.reject(delivery_info.delivery_tag, true)
end
end

ensure
private_channel.close if use_thread_pool && private_channel
end
end
Expand Down

0 comments on commit 933e981

Please sign in to comment.