diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -279,7 +279,7 @@ if assignment == nil timeout = nil else - if assignment.expired? + if (assignment.expired?) or (assignment.submitted) timeout = 0 else timeout = assignment.created_at + TEST_ASSIGNMENT_EXPIRATION_DURATION - Time.new.gmtime