Skip to content

Commit

Permalink
use correct playheadstate function for set states (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nfrederiksen authored Apr 17, 2024
1 parent 549c963 commit dd2f29f
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 dd2f29f

Please sign in to comment.