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
|
module TmpPath
|
||||||
def run(*args)
|
def capture_exceptions
|
||||||
begin
|
super
|
||||||
result = super(*args)
|
rescue
|
||||||
rescue Interrupt
|
clean_tmp_paths
|
||||||
clean_tmp_paths
|
raise
|
||||||
raise
|
ensure
|
||||||
end
|
|
||||||
|
|
||||||
clean_tmp_paths
|
clean_tmp_paths
|
||||||
result
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue