From 55464fe1e748ebfb54fd514a109ee0ac615a222c Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 13 Sep 2011 07:56:05 +0100 Subject: Added rescue clause to XMPP connect --- lib/mauve/notifiers/xmpp.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 # -- cgit v1.2.1