lib/streamly_ffi/connection.rb in streamly_ffi-0.2.2 vs lib/streamly_ffi/connection.rb in streamly_ffi-0.2.3
- old
+ new
@@ -2,10 +2,10 @@
class Connection
attr_accessor :connection
def initialize
- self.connection = StreamlyFFI::PersistentRequest.new
+ self.connection ||= StreamlyFFI::PersistentRequest.new
end
# A helper method to make HEAD requests a dead-simple one-liner
#
# Example:
\ No newline at end of file