commons-assessment 12.0.39-dev.0 → 12.0.39-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1328,10 +1328,11 @@
1328
1328
  catch (e) { /* noop */ }
1329
1329
  };
1330
1330
  /** Tear down and remove the camera preview. */
1331
- ProctoringService.prototype.destroy = function () {
1331
+ ProctoringService.prototype.destroy = function (params) {
1332
+ if (params === void 0) { params = { endSession: true }; }
1332
1333
  var _a, _b;
1333
1334
  try {
1334
- (_b = (_a = this.session) === null || _a === void 0 ? void 0 : _a.destroy) === null || _b === void 0 ? void 0 : _b.call(_a);
1335
+ (_b = (_a = this.session) === null || _a === void 0 ? void 0 : _a.destroy) === null || _b === void 0 ? void 0 : _b.call(_a, params);
1335
1336
  }
1336
1337
  catch (e) { /* noop */ }
1337
1338
  this.session = undefined;
@@ -2738,6 +2739,9 @@
2738
2739
  if (this.timerInterval) {
2739
2740
  clearInterval(this.timerInterval);
2740
2741
  }
2742
+ if (this.proctoringSessionStarted) {
2743
+ this.proctoringService.destroy({ endSession: false });
2744
+ }
2741
2745
  };
2742
2746
  /**
2743
2747
  * Ends the proctoring session after the assessment is submitted: stops + destroys the ProctorLink