Index: openacs-4/packages/xowf/lib/inclass-exam-answer.wf =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/lib/inclass-exam-answer.wf,v diff -u -r1.1.2.41 -r1.1.2.42 --- openacs-4/packages/xowf/lib/inclass-exam-answer.wf 22 Jun 2021 07:15:00 -0000 1.1.2.41 +++ openacs-4/packages/xowf/lib/inclass-exam-answer.wf 23 Jun 2021 08:46:20 -0000 1.1.2.42 @@ -580,7 +580,12 @@ set seconds_working [expr {[clock seconds] - $base_clock}] set total_minutes [${:QM} total_minutes_for_exam -manager $parent_obj] set timeLeft [expr {$total_minutes*60 - $seconds_working}] - if {$timeLeft < 0} { + # + # The autosave operation has a 10 secs delay. To allow save + # operations up to the last second, we accept an 10 secs overdue + # on autosave. + # + if {$timeLeft < -10} { set autosaveAllowed 0 set reason "time used up (time left $timeLeft seconds)" }