Skip to content
Browse files

Add Errno::ECONNRESET

  • Loading branch information...
1 parent 96ce406 commit 9fbe187865a26922011e469f85489476eb38b1c6 @bpoweski committed Jun 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/apnserver/server.rb
View
2 lib/apnserver/server.rb
@@ -24,7 +24,7 @@ def start!
begin
@client.connect! unless @client.connected?
@client.write(notification)
- rescue Errno::EPIPE, OpenSSL::SSL::SSLError
+ rescue Errno::EPIPE, OpenSSL::SSL::SSLError, Errno::ECONNRESET
Config.logger.error "Caught Error, closing connecting and adding notification back to queue"
@client.disconnect!
@queue.push(notification)

0 comments on commit 9fbe187

Please sign in to comment.
Something went wrong with that request. Please try again.