Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #220 from mediaslave24/1.5.x-stable
Browse files Browse the repository at this point in the history
Ensure that frameset will be cleared
  • Loading branch information
michaelklishin committed Oct 17, 2015
2 parents 900c02c + 5ee13d6 commit dd0b2de
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/amqp/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -930,9 +930,12 @@ def receive_frame(frame)
@frames[frame.channel] << frame

if frameset_complete?(@frames[frame.channel])
receive_frameset(@frames[frame.channel])
# for channel.close, frame.channel will be nil. MK.
clear_frames_on(frame.channel) if @frames[frame.channel]
begin
receive_frameset(@frames[frame.channel])
ensure # Ensure that frames always will be cleared
# for channel.close, frame.channel will be nil. MK.
clear_frames_on(frame.channel) if @frames[frame.channel]
end
end
end

Expand Down

0 comments on commit dd0b2de

Please sign in to comment.