LibJS: Don't start rendering thread for a navigable created for SVG

Traversable navigable created for rendering svg element doesn't perform
any actual rendering, so there is no need to spawn a rendering thread.
This commit is contained in:
Aliaksandr Kalenik 2025-06-05 19:58:53 +02:00 committed by Alexander Kalenik
parent 39fff3cf8a
commit ed1337add1
Notes: github-actions[bot] 2025-06-06 01:58:02 +00:00
2 changed files with 8 additions and 4 deletions

View file

@ -28,7 +28,9 @@ RenderingThread::~RenderingThread()
{
// Note: Promise rejection is expected to signal the thread to exit.
m_main_thread_exit_promise->reject(Error::from_errno(ECANCELED));
(void)m_thread->join();
if (m_thread) {
(void)m_thread->join();
}
}
void RenderingThread::start(DisplayListPlayerType display_list_player_type)