Skip to content

Commit d9bbf7c

Browse files
committed
Temporary fix for possible errors on shutdown, see comment.
1 parent 6b8636a commit d9bbf7c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cefpython.pyx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,13 @@ def Shutdown():
449449
Debug("Shutdown()")
450450
with nogil:
451451
CefShutdown()
452+
# Temporary fix for possible errors on shutdown. See this post:
453+
# https://magpcss.org/ceforum/viewtopic.php?p=30858#p30858
454+
# May be fixed by host owned message loop, see Issue 1805:
455+
# https://bitbucket.org/chromiumembedded/cef/issues/1805/
456+
for i in range(10):
457+
CefDoMessageLoopWork()
458+
452459

453460
def SetOsModalLoop(py_bool modalLoop):
454461
cdef cpp_bool cefModalLoop = bool(modalLoop)

0 commit comments

Comments
 (0)