Skip to content

Commit db2c291

Browse files
committed
Ensure @reader is nil before closing.
1 parent 6e35f51 commit db2c291

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/async/http/protocol/http2/connection.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def read_in_background(parent: Task.current)
101101
ensure
102102
# Don't call #close twice.
103103
if @reader
104+
@reader = nil
105+
104106
self.close(error)
105107
end
106108
end

0 commit comments

Comments
 (0)