Skip to content

Commit

Permalink
use correct playheadstate function for set states
Browse files Browse the repository at this point in the history
  • Loading branch information
Nfrederiksen committed Apr 17, 2024
1 parent 549c963 commit 519bd43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engine/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,8 @@ class Session {
}

async stopPlayheadAsync() {
const isLeader = await this._sessionStateStore.isLeader(this._instanceId);
debug(`[${this._sessionId}]: Stopping playhead consumer`);
await this._playheadState.set("state", PlayheadState.STOPPED, isLeader);
await this._playheadState.setState(PlayheadState.STOPPED);
}

async getStatusAsync() {
Expand Down

0 comments on commit 519bd43

Please sign in to comment.