mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
thread-loop: we must be running to be in the thread
This commit is contained in:
parent
9849d12009
commit
90d755ab4c
1 changed files with 1 additions and 1 deletions
|
|
@ -465,5 +465,5 @@ void pw_thread_loop_accept(struct pw_thread_loop *loop)
|
|||
SPA_EXPORT
|
||||
bool pw_thread_loop_in_thread(struct pw_thread_loop *loop)
|
||||
{
|
||||
return pthread_self() == loop->thread;
|
||||
return loop->running && pthread_self() == loop->thread;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue