-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes race conditions in the tsh session player by using a condition variable to detect state changes rather than unsafely polling a variable that is written by a separate goroutine. In addition, fix an off by one error when resuming playback after pausing. The player's position variable has always stored the index of the last succesfully played event, so when we resume playback we should start at position+1 to not re-play the previous event twice. Fixes #11479
- Loading branch information
Showing
3 changed files
with
266 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.