Skip to content

[stable26] Fix stopping recording service before it has fully started#9126

Merged
nickvergessen merged 2 commits intostable26from
backport/9124/stable26
Mar 22, 2023
Merged

[stable26] Fix stopping recording service before it has fully started#9126
nickvergessen merged 2 commits intostable26from
backport/9124/stable26

Conversation

@backportbot-nextcloud
Copy link

backport of #9124

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 <danxuliu@gmail.com>
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 <danxuliu@gmail.com>
@nickvergessen nickvergessen merged commit af82b8e into stable26 Mar 22, 2023
@nickvergessen nickvergessen deleted the backport/9124/stable26 branch March 22, 2023 08:29
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.

2 participants