From ae6ea277be4c1e77b90e3152c870698c2e827043 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Wed, 7 Nov 2007 20:13:00 +0000 Subject: [PATCH] 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 --- lib/sup/hook.rb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.45.2