http2: only goaway from connection once

This commit is contained in:
HoneyryderChuck 2020-03-07 22:56:13 +00:00
parent 0a0313b69d
commit 4348f49c69

View File

@ -28,7 +28,7 @@ module HTTPX
end
def close
@connection.goaway
@connection.goaway unless @connection.state == :closed
end
def empty?