diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-07-22 16:55:54 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-07-22 16:55:54 +0100 |
commit | 25b32914b72a5f709eca773f3511cc89c2e710c2 (patch) | |
tree | 4dab9e78e4c6b49220a837b38d463328c05e2983 /lib/mauve/notifier.rb | |
parent | 3185e5d746abda1b7f42ecdbd74ec14359fda3bc (diff) | |
parent | fd23821950f0562a8995735105cd31fdc6d55933 (diff) |
merge
Diffstat (limited to 'lib/mauve/notifier.rb')
-rw-r--r-- | lib/mauve/notifier.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/mauve/notifier.rb b/lib/mauve/notifier.rb index 6099457..1c3bf9b 100644 --- a/lib/mauve/notifier.rb +++ b/lib/mauve/notifier.rb @@ -8,8 +8,6 @@ module Mauve include Singleton - attr_accessor :sleep_interval - def main_loop # # Cycle through the buffer. @@ -48,7 +46,7 @@ module Mauve # Connect to XMPP server # xmpp = Configuration.current.notification_methods['xmpp'] - xmpp.connect + xmpp.connect Configuration.current.people.each do |username, person| # @@ -74,6 +72,12 @@ module Mauve def stop super + + # + # Flush the queue. + # + main_loop + if Configuration.current.notification_methods['xmpp'] Configuration.current.notification_methods['xmpp'].close end |