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

Ensure that frameset will be cleared #220

Merged
merged 1 commit into from Oct 17, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions lib/amqp/session.rb
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