aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notifiers/xmpp.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-21 14:43:47 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-21 14:43:47 +0000
commit9f592b7e89eb8713f566b0a11981f2ff87ca4ae3 (patch)
treea18d7853649c6dd9a67e89720d16d08516a75cbd /lib/mauve/notifiers/xmpp.rb
parent068fc107d22a0438afb53a82e7dab680b721531c (diff)
Updated xmmp notifier to crash mauve on exception (ugh().
Diffstat (limited to 'lib/mauve/notifiers/xmpp.rb')
-rw-r--r--lib/mauve/notifiers/xmpp.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/mauve/notifiers/xmpp.rb b/lib/mauve/notifiers/xmpp.rb
index f2c5503..f14f508 100644
--- a/lib/mauve/notifiers/xmpp.rb
+++ b/lib/mauve/notifiers/xmpp.rb
@@ -142,17 +142,17 @@ module Mauve
logger.info "Connected as #{@jid}"
- @client.on_exception do |ex, stream, where|
+ # @client.on_exception do |ex, stream, where|
#
# The XMPP4R exception clauses in Stream all close the stream, so
# we just need to reconnect.
#
- unless ex.nil? or @closing
- logger.warn(["Caught",ex.class,ex.to_s,"during XMPP",where].join(" "))
- logger.debug ex.backtrace.join("\n")
- self.close
- end
- end
+ # unless ex.nil? or @closing
+ # logger.warn(["Caught",ex.class,ex.to_s,"during XMPP",where].join(" "))
+ # logger.debug ex.backtrace.join("\n")
+ # self.close
+ # end
+ # end
rescue StandardError => ex
logger.error "Connect failed #{ex.to_s}"
logger.debug ex.backtrace.join("\n")