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 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