Call SetIsShutdown after CefInitialize (fixes #3738)

Delay shutdown checking until after CefInitialize has drained existing
task pools.
This commit is contained in:
Marshall Greenblatt
2024-07-15 15:13:42 -04:00
parent ddb0ab8187
commit 02ea88f79f
4 changed files with 18 additions and 18 deletions

View File

@ -335,11 +335,6 @@ def make_ctocpp_function_impl_new(clsname, name, func, base_scoped):
result += '\n'
result_len = len(result)
if is_cef_shutdown:
result += '\n\n#if DCHECK_IS_ON()'\
'\n shutdown_checker::SetIsShutdown();'\
'\n#endif\n'
# execution
result += '\n // Execute\n '
@ -369,6 +364,11 @@ def make_ctocpp_function_impl_new(clsname, name, func, base_scoped):
result += ');\n'
if is_cef_shutdown:
result += '\n\n#if DCHECK_IS_ON()'\
'\n shutdown_checker::SetIsShutdown();'\
'\n#endif\n'
result_len = len(result)
# parameter restoration