./lib/houston/client.rb in houston-0.3.1 vs ./lib/houston/client.rb in houston-1.0.0
- old
+ new
@@ -42,9 +42,10 @@
ssl = connection.ssl
notifications.each_with_index do |notification, index|
next unless notification.kind_of?(Notification)
next if notification.sent?
+ next unless notification.valid?
notification.id = index
connection.write(notification.message)
notification.mark_as_sent!