Immediately commit if we're currently terminating

This commit is contained in:
Jonathan Putney
2020-06-29 21:12:27 -04:00
parent 2a3f9b61af
commit 97070184b8
7 changed files with 47 additions and 23 deletions

View File

@@ -302,7 +302,7 @@ export default class Scorm12API extends BaseAPI {
(terminateCommit ? 'yes' : 'no') + '): ');
console.debug(commitObject);
}
return this.processHttpRequest(this.settings.lmsCommitUrl, commitObject);
return this.processHttpRequest(this.settings.lmsCommitUrl, commitObject, terminateCommit);
} else {
console.log('Commit (terminated: ' +
(terminateCommit ? 'yes' : 'no') + '): ');