diff --git a/app/controllers/avatar_controller.rb b/app/controllers/avatar_controller.rb index 8a383f6f9..228f20599 100644 --- a/app/controllers/avatar_controller.rb +++ b/app/controllers/avatar_controller.rb @@ -75,6 +75,10 @@ class AvatarController < ApplicationController end @temp_file = nil + while !File.exist?(diskfile) + sleep(0.5) + end + respond_to do |format| format.json{ render :inline => {status: @status, message:@msg, url:"#{@urlfile.to_s}?#{Time.now.to_i}"}.to_json,:content_type => 'text/html'