lib/flapjack/jabber.rb in flapjack-0.6.29 vs lib/flapjack/jabber.rb in flapjack-0.6.30
- old
+ new
@@ -281,12 +281,9 @@
EM.next_tick do
# get delays without the next_tick
close # Blather::Client.close
end
end
- # FIXME: should we also set something so should_quit? returns true
- # to prevent retrieving more notifications from the queue while closing?
- # or does close only return once the connection is really and truely closed?
else
entity, check = event['event_id'].split(':')
state = event['state']
summary = event['summary']
duration = event['duration'] ? time_period_in_words(event['duration']) : '4 hours'