save the encoded version before breaking out of the loop

git-svn-id: file:///home/svn/framework3/trunk@12739 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-05-27 16:25:38 +00:00
parent ef7a7adc1e
commit 33135af296
1 changed files with 2 additions and 2 deletions

View File

@ -320,12 +320,12 @@ if opts[:encode]
end
print_status("#{enc.refname} succeeded with size #{raw.length} (iteration=#{iteration})\n")
eout = raw
payload_raw = raw
if iteration == opts[:iterations]
done = true
break
end
eout = raw
payload_raw = raw
rescue
if iteration != opts[:iteration]
print_error("#{enc.refname} failed: #{$!} (iteration=#{iteration})\n")