From: wmorgan Date: Wed, 7 Nov 2007 20:13:00 +0000 (+0000) Subject: when a hook throws an exception, disable it rather than re-calling it over and over X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=ae6ea277be4c1e77b90e3152c870698c2e827043;p=sup when a hook throws an exception, disable it rather than re-calling it over and over git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@676 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/hook.rb b/lib/sup/hook.rb index f1157ca..327ce2d 100644 --- a/lib/sup/hook.rb +++ b/lib/sup/hook.rb @@ -86,6 +86,7 @@ class HookManager log "error running hook: #{e.message}" log e.backtrace.join("\n") BufferManager.flash "Error running hook: #{e.message}" + @hooks[name] = nil # disable it end context.__cleanup result