From 9f592b7e89eb8713f566b0a11981f2ff87ca4ae3 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 21 Nov 2012 14:43:47 +0000 Subject: Updated xmmp notifier to crash mauve on exception (ugh(). --- lib/mauve/notifiers/xmpp.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib') 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") -- cgit v1.2.1