close parser when there's a parser

This commit is contained in:
HoneyryderChuck 2018-03-18 12:23:12 +00:00
parent fb31512c29
commit d78230899b

View File

@ -100,7 +100,7 @@ module HTTPX
end
def close
@parser.close
@parser.close if @parser
transition(:closing)
end