lib/lead_zeppelin/apns/application.rb in lead_zeppelin-0.1.8 vs lib/lead_zeppelin/apns/application.rb in lead_zeppelin-0.1.9

- old
+ new

@@ -59,11 +59,15 @@ gateway = new_gateway else gateway = @gateway_pool.pop end + return false if gateway.nil? + gateway.write Notification.new(device_id, message, opts) @gateway_pool.push gateway + + true end end end end \ No newline at end of file