Method: Session::IDL#initialize

Defined in:
lib/session.rb

#initialize(*args) ⇒ IDL

Returns a new instance of IDL.



565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
# File 'lib/session.rb', line 565

def initialize(*args)
  tries = 0 
  ret = nil
  begin
    ret = super
  rescue LicenseManagerError => e
    tries += 1 
    if tries < MAX_TRIES
      sleep 1
      retry
    else
      raise LicenseManagerError, "<#{ MAX_TRIES }> attempts <#{ e.message }>"
    end
  end
  ret
end