Ignore ^C when cleaning up at exit

This commit is contained in:
Max Howell 2009-12-07 17:56:47 +00:00
parent 5131475ae1
commit 19039471c0

View File

@ -44,7 +44,7 @@ class CurlDownloadStrategy <AbstractDownloadStrategy
begin
curl @url, '-o', @dl
rescue Exception
@dl.unlink if @dl.exist?
ignore_interrupts { @dl.unlink if @dl.exist? }
raise
end
else