Skip to content

Commit

Permalink
fix(FEC-11492): dash adapter is not destroyed when network is offline (
Browse files Browse the repository at this point in the history
…#167)

**issue:**
once dash is triggering critical error event, we are not destroying the engine.

**solution:**
destroying engine when critical event is being fired.

Solves FEC-11492
  • Loading branch information
lianbenjamin authored Aug 18, 2021
1 parent 2861043 commit 1c496b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dash-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,9 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
}
this._trigger(EventType.ERROR, new Error(error.severity, error.category, error.code, error.data));
DashAdapter._logger.error(error);
if (error.severity === Error.Severity.CRITICAL) {
this.destroy();
}
}
}

Expand Down

0 comments on commit 1c496b5

Please sign in to comment.