@webex/plugin-meetings 3.12.0-next.144 → 3.12.0-next.145

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.
@@ -869,7 +869,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
869
869
  }, _callee1);
870
870
  }))();
871
871
  },
872
- version: "3.12.0-next.144"
872
+ version: "3.12.0-next.145"
873
873
  });
874
874
  var _default = exports.default = Webinar;
875
875
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -94,5 +94,5 @@
94
94
  "//": [
95
95
  "TODO: upgrade jwt-decode when moving to node 18"
96
96
  ],
97
- "version": "3.12.0-next.144"
97
+ "version": "3.12.0-next.145"
98
98
  }
@@ -372,7 +372,6 @@ const MeetingUtil = {
372
372
  meeting.breakouts.cleanUp();
373
373
  meeting.webinar.cleanUp();
374
374
  meeting.simultaneousInterpretation.cleanUp();
375
- meeting.locusInfo.cleanUp();
376
375
  meeting.locusMediaRequest = undefined;
377
376
 
378
377
  meeting.webex?.internal?.newMetrics?.callDiagnosticMetrics?.clearEventLimitsForCorrelationId(
@@ -1493,6 +1493,9 @@ export default class Meetings extends WebexPlugin {
1493
1493
  */
1494
1494
  private destroy(meeting: Meeting, reason: object) {
1495
1495
  MeetingUtil.cleanUp(meeting);
1496
+ // Tear down hash tree parsers here (and not in MeetingUtil.cleanUp) so they survive
1497
+ // leave/endMeetingForAll to consume the final sentinel END message from Locus.
1498
+ meeting.locusInfo?.cleanUp();
1496
1499
  // keep some basic info about the deleted meeting forever
1497
1500
  this.deletedMeetings.set(meeting.id, {
1498
1501
  id: meeting.id,
@@ -90,7 +90,8 @@ describe('plugin-meetings', () => {
90
90
  assert.calledOnceWithExactly(meeting.cleanupLLMConneciton, {throwOnError: false});
91
91
  assert.calledOnce(meeting.breakouts.cleanUp);
92
92
  assert.calledOnce(meeting.simultaneousInterpretation.cleanUp);
93
- assert.calledOnce(meeting.locusInfo.cleanUp);
93
+ // locusInfo.cleanUp (hash tree parser teardown) is deferred to Meetings#destroy
94
+ assert.notCalled(meeting.locusInfo.cleanUp);
94
95
  assert.calledOnce(webex.internal.device.meetingEnded);
95
96
  assert.calledOnceWithExactly(
96
97
  meeting.webex.internal.newMetrics.callDiagnosticMetrics.clearEventLimitsForCorrelationId,
@@ -112,7 +113,8 @@ describe('plugin-meetings', () => {
112
113
  assert.notCalled(meeting.cleanupLLMConneciton);
113
114
  assert.calledOnce(meeting.breakouts.cleanUp);
114
115
  assert.calledOnce(meeting.simultaneousInterpretation.cleanUp);
115
- assert.calledOnce(meeting.locusInfo.cleanUp);
116
+ // locusInfo.cleanUp (hash tree parser teardown) is deferred to Meetings#destroy
117
+ assert.notCalled(meeting.locusInfo.cleanUp);
116
118
  assert.calledOnce(webex.internal.device.meetingEnded);
117
119
  assert.calledOnceWithExactly(
118
120
  meeting.webex.internal.newMetrics.callDiagnosticMetrics.clearEventLimitsForCorrelationId,
@@ -133,7 +135,8 @@ describe('plugin-meetings', () => {
133
135
  assert.notCalled(meeting.cleanupLLMConneciton);
134
136
  assert.calledOnce(meeting.breakouts.cleanUp);
135
137
  assert.calledOnce(meeting.simultaneousInterpretation.cleanUp);
136
- assert.calledOnce(meeting.locusInfo.cleanUp);
138
+ // locusInfo.cleanUp (hash tree parser teardown) is deferred to Meetings#destroy
139
+ assert.notCalled(meeting.locusInfo.cleanUp);
137
140
  assert.calledOnce(webex.internal.device.meetingEnded);
138
141
  assert.calledOnceWithExactly(
139
142
  meeting.webex.internal.newMetrics.callDiagnosticMetrics.clearEventLimitsForCorrelationId,
@@ -1708,6 +1708,7 @@ describe('plugin-meetings', () => {
1708
1708
  locusInfo: {
1709
1709
  info: {globalMeetingId: 'gmid-other'},
1710
1710
  sync: sinon.stub().resolves(),
1711
+ cleanUp: sinon.stub(),
1711
1712
  },
1712
1713
  sendCallAnalyzerMetrics: sinon.stub(),
1713
1714
  },
@@ -3463,6 +3464,16 @@ describe('plugin-meetings', () => {
3463
3464
  assert.equal(deletedMeetingInfo.roles, meetingIds.roles);
3464
3465
  assert.equal(deletedMeetingInfo.callStateForMetrics, meetingIds.callStateForMetrics);
3465
3466
  });
3467
+
3468
+ it('cleans up locusInfo (tearing down hash tree parsers) when destroying the meeting', async () => {
3469
+ const meeting = await webex.meetings.createMeeting('test', 'test');
3470
+ const locusInfoCleanUpSpy = sinon.spy(meeting.locusInfo, 'cleanUp');
3471
+
3472
+ webex.meetings.destroy(meeting, test1);
3473
+
3474
+ // hash tree parser teardown is deferred from MeetingUtil.cleanUp to Meetings#destroy
3475
+ assert.calledOnce(locusInfoCleanUpSpy);
3476
+ });
3466
3477
  });
3467
3478
 
3468
3479
  describe('with auto upload logs enabled', () => {