1
0
Fork 0
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:
Vyacheslav Alexeev 2020-09-01 22:20:13 +03:00
parent f086e68bc8
commit c196c27423

View file

@ -1,14 +1,11 @@
module TmpPath
def run(*args)
begin
result = super(*args)
rescue Interrupt
def capture_exceptions
super
rescue
clean_tmp_paths
raise
end
ensure
clean_tmp_paths
result
end
private