Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"with_connection" method raises an exception: NoMethodError: undefined method `close' for nil:NilClass #63

Open
vrulevskii opened this issue Mar 11, 2015 · 0 comments

Comments

@vrulevskii
Copy link

There is a code in file https://github.com/NicosKaralis/pushmeup/tree/master/lib/pushmeup/apns/core.rb
which returns the exception. It is

    rescue StandardError, Errno::EPIPE
      raise unless attempts < @retries

      @ssl.close # <== here we got an exception
      @sock.close

      attempts += 1
      retry
    end

Probably, you forget to check the condition unless @ssl.nil?
Could you, please, fix that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant