aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notifiers/xmpp.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-09-13 07:56:05 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-09-13 07:56:05 +0100
commit55464fe1e748ebfb54fd514a109ee0ac615a222c (patch)
tree9a251593d71ff980886fce711876b9daf0e17f77 /lib/mauve/notifiers/xmpp.rb
parent768ccf6d467a9354dd35e842f040f6b5eb374735 (diff)
Added rescue clause to XMPP connect
Diffstat (limited to 'lib/mauve/notifiers/xmpp.rb')
-rw-r--r--lib/mauve/notifiers/xmpp.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mauve/notifiers/xmpp.rb b/lib/mauve/notifiers/xmpp.rb
index 9cc5ab5..77d6236 100644
--- a/lib/mauve/notifiers/xmpp.rb
+++ b/lib/mauve/notifiers/xmpp.rb
@@ -149,6 +149,10 @@ module Mauve
end
end
end
+ rescue StandardError => ex
+ logger.error "Connect failed #{ex.to_s}"
+ logger.debug ex.backtrace.join("\n")
+ @client = nil
end
#