lib/voilkruby/api.rb
# Stops the persistant http connections.
#
Stops the persistant http connections.
Stops the persistant http connections .
def shutdown
      @uri = nil
      @http_id = nil
      @http_memo.each do |k|
        v = @http_memo.delete(k)
        if defined?(v.shutdown)
          debug "Shutting down instance #{k} (#{v})"
          v.shutdown
        end
      end
      @api.shutdown if !!@api && @api != self
      @api = nil
      @block_api.shutdown if !!@block_api && @block_api != self
      @block_api = nil
      if @self_logger
        if !!@logger && defined?(@logger.close)
          if defined?(@logger.closed?)
            @logger.close unless @logger.closed?
          end
        end
      end
      if @self_hashie_logger
        if !!@hashie_logger && defined?(@hashie_logger.close)
          if defined?(@hashie_logger.closed?)
            @hashie_logger.close unless @hashie_logger.closed?
          end
        end
      end
    end
def shutdown @uri = nil @http_id = nil @http_memo . each do | k | v = @http_memo . delete ( k ) if defined? ( v . shutdown ) debug "Shutting down instance #{k} (#{v})" v . shutdown end end @api . shutdown if ! ! @api && @api != self @api = nil @block_api . shutdown if ! ! @block_api && @block_api != self @block_api = nil if @self_logger if ! ! @logger && defined? ( @logger . close ) if defined? ( @logger . closed? ) @logger . close unless @logger . closed? end end end if @self_hashie_logger if ! ! @hashie_logger && defined? ( @hashie_logger . close ) if defined? ( @hashie_logger . closed? ) @hashie_logger . close unless @hashie_logger . closed? end end end end
Stops the persistant http connections.
Stops the persistant http connections .