Skip to content

Commit

Permalink
@socket may be nil. (merged from CRuby)
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Aug 7, 2011
1 parent dbcdb42 commit bf0bb03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/http.rb
Expand Up @@ -1189,7 +1189,7 @@ def transport_request(req)
res
rescue => exception
D "Conn close because of error #{exception}"
@socket.close unless @socket.closed?
@socket.close if @socket and not @socket.closed?
raise exception
end

Expand Down

0 comments on commit bf0bb03

Please sign in to comment.