Skip to content

Commit

Permalink
Ensure @reader is nil before closing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Sep 4, 2024
1 parent 6e35f51 commit db2c291
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/async/http/protocol/http2/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def read_in_background(parent: Task.current)
ensure
# Don't call #close twice.
if @reader
@reader = nil

self.close(error)
end
end
Expand Down

0 comments on commit db2c291

Please sign in to comment.