Permalink
Browse files

removed rescue

  • Loading branch information...
1 parent 442878e commit bea6a211b9d0ed76b7971855c094979bcbb975e9 @ramigg committed Feb 13, 2012
Showing with 7 additions and 11 deletions.
  1. +7 −11 lib/apn_on_rails/app/models/apn/app.rb
@@ -44,20 +44,16 @@ def self.send_notifications_for_cert(the_cert, app_id)
else
conditions = ["app_id = ?", app_id]
end
- begin
- APN::Connection.open_for_delivery({:cert => the_cert}) do |conn, sock|
- APN::Device.find_each(:conditions => conditions) do |dev|
- dev.unsent_notifications.each do |noty|
- conn.write(noty.message_for_sending)
- noty.sent_at = Time.now
- noty.save
- end
+ APN::Connection.open_for_delivery({:cert => the_cert}) do |conn, sock|
+ APN::Device.find_each(:conditions => conditions) do |dev|
+ dev.unsent_notifications.each do |noty|
+ conn.write(noty.message_for_sending)
+ noty.sent_at = Time.now
+ noty.save
end
end
- rescue Exception => e
- log_connection_exception(e)
end
- # end
+ # end
end
def send_group_notifications

0 comments on commit bea6a21

Please sign in to comment.