Skip to content

ThreadDeath bug. - #355

Merged
rbri merged 1 commit into
HtmlUnit:masterfrom
Sergio-Blueliv:ThreadDeathBug
May 18, 2021
Merged

rbri merged 1 commit into
HtmlUnit:masterfrom
Sergio-Blueliv:ThreadDeathBug

Conversation

@Sergio-Blueliv

@Sergio-Blueliv Sergio-Blueliv commented May 18, 2021 •

Copy link
Copy Markdown
Contributor

If ThreadDeath is thrown when closing the script executor, all cleaning code is not executed because ThreadDeath extends from error not from Exception.
I have caught this error, allowing all the following steps to be called and re-throwing it after clean is performed.

If ThreadDeath is thrown when closing the script executor, all of the
following
not done because ThreadDeath extends from Error not from Exception.
I have caught this error, allowing all the following steps are called
and re-throw it after cleaning the caches.
Signed-off-by: Sergio Moreno <[email protected]>
@rbri
rbri merged commit 10ecec3 into HtmlUnit:master May 18, 2021
@rbri

rbri commented May 18, 2021

Copy link
Copy Markdown
Member

Thanks for your contribution

@Sergio-Blueliv
Sergio-Blueliv deleted the ThreadDeathBug branch October 13, 2021 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants