mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
override capture_exceptions
This commit is contained in:
parent
f086e68bc8
commit
c196c27423
1 changed files with 6 additions and 9 deletions
|
@ -1,14 +1,11 @@
|
|||
module TmpPath
|
||||
def run(*args)
|
||||
begin
|
||||
result = super(*args)
|
||||
rescue Interrupt
|
||||
clean_tmp_paths
|
||||
raise
|
||||
end
|
||||
|
||||
def capture_exceptions
|
||||
super
|
||||
rescue
|
||||
clean_tmp_paths
|
||||
raise
|
||||
ensure
|
||||
clean_tmp_paths
|
||||
result
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue