We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57992b2 commit bc6a79fCopy full SHA for bc6a79f
lib/drm/drm_engine.js
@@ -1757,7 +1757,7 @@ shaka.drm.DrmEngine = class {
1757
if (found && !found.updatePromise) {
1758
shaka.log.debug('Session has expired', session.sessionId);
1759
this.activeSessions_.delete(session);
1760
- session.close().catch(() => {}); // Silence uncaught rejection errors
+ this.closeSession_(session);
1761
}
1762
1763
@@ -2116,7 +2116,7 @@ shaka.drm.DrmEngine = class {
2116
try {
2117
await shaka.util.Functional.promiseWithTimeout(
2118
shaka.drm.DrmEngine.CLOSE_TIMEOUT_,
2119
- Promise.all([session.close(), session.closed]));
+ Promise.all([session.close().catch(() => {}), session.closed]));
2120
} catch (e) {
2121
shaka.log.warning('Timeout waiting for session close');
2122
0 commit comments