since ugoira converter always uses the md5 file path as the base, no longer have to delay unlinking the tempfile

This commit is contained in:
r888888888
2014-10-28 11:20:49 -07:00
parent 5eb20ab39f
commit 94fd03f5d0

View File

@@ -139,13 +139,7 @@ class Upload < ActiveRecord::Base
update_attributes(:status => "error: #{x.class} - #{x.message}", :backtrace => x.backtrace.join("\n"))
ensure
if async_conversion?
# need to delay this because we have to process the file
# before deleting it
delay(:queue => Socket.gethostname).delete_temp_file(temp_file_path)
else
delete_temp_file
end
delete_temp_file
end
def async_conversion?