Skip to content

Commit

Permalink
If export fails unset the session worker key
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Youch committed Oct 14, 2010
1 parent 4076d16 commit f9600b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/file_controller.rb
Expand Up @@ -435,6 +435,8 @@ def export_status
end
@failed = @completed && results[:domain_file_id].blank?

session[:download_worker_key] = nil if @failed

render :json => {:completed => @completed, :failed => @failed}
end

Expand Down

0 comments on commit f9600b8

Please sign in to comment.