Skip to content
Snippets Groups Projects
Commit 7d643f9b authored by Calvin Walton's avatar Calvin Walton
Browse files

RaP sanity: Don't delete .ser file unless repair succeeded

parent 9cdafbdf
No related branches found
No related tags found
No related merge requests found
......@@ -66,13 +66,12 @@ def repair_red5_ser(directory)
ret = BigBlueButton.exec_ret('java', '-cp', cp, 'org.red5.io.flv.impl.FLVWriter', ser, '0', '7')
if ret != 0
BigBlueButton.logger.warn("Failed to repair #{ser}")
next
end
end
BigBlueButton.logger.info("Cleaning up red5 .flv.ser and .flv.info files")
Dir.glob("*.flv.{ser,info}").each do |f|
BigBlueButton.logger.info("Removing #{f}")
FileUtils.rm(f)
BigBlueButton.logger.info("Cleaning up .flv.ser and .flv.info files")
FileUtils.rm_f(ser)
FileUtils.rm_f("#{ser[0..-5]}.info")
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment