Skip to content

Fix stopping recording service before it has fully started#9124

Merged
nickvergessen merged 2 commits intomasterfrom
fix-stopping-recording-service-before-it-has-fully-started
Mar 22, 2023
Merged

Fix stopping recording service before it has fully started#9124
nickvergessen merged 2 commits intomasterfrom
fix-stopping-recording-service-before-it-has-fully-started

Conversation

@danxuliu
Copy link
Member

Fixes #8750
Fixes/obsoletes #9020

When the recording is stopped the helpers, like the display or the
browser, are stopped. This might cause an exception to be thrown, but if
the recording was still starting and it was not fully started yet there
is no need to notify that failure to the Nextcloud server.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
The recording is stopped in a different thread than it is started.
Stopping the recording stops the helpers, like the display, but if they
are stopped at the same time that they are being started there could be
a race condition in which the helper is tried to be stopped in one
thread and, immediately after that, the helper is started in the other
thread. This is now handled by explicitly checking if the recording was
stopped after starting each helper and aborting the start if it was.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu
Copy link
Member Author

/backport to stable26

@nickvergessen nickvergessen merged commit a99adf1 into master Mar 22, 2023
@nickvergessen nickvergessen deleted the fix-stopping-recording-service-before-it-has-fully-started branch March 22, 2023 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug feature: call 📹 Voice and video calls

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recording service helpers may not be stopped in some cases

2 participants