Fix ::Interrupt exception handling

bug/bundler_fix
sinn3r 2014-01-30 18:57:27 -06:00
parent 9f669a8e39
commit 4d008ca3f3
1 changed files with 5 additions and 1 deletions

View File

@ -103,7 +103,11 @@ module ModuleCommandDispatcher
begin begin
@tl.first.join @tl.first.join
rescue ::Exception => exception rescue ::Exception => exception
elog("#{exception} #{exception.class}:\n#{exception.backtrace.join("\n")}") if exception.kind_of?(::Interrupt)
raise exception
else
elog("#{exception} #{exception.class}:\n#{exception.backtrace.join("\n")}")
end
end end
@tl.delete_if { |t| not t.alive? } @tl.delete_if { |t| not t.alive? }