Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3d907c + ef36f45 commit bac9b03Copy full SHA for bac9b03
1 file changed
src/_macosx.m
@@ -1869,7 +1869,7 @@ static void context_cleanup(const void* info)
1869
CFTimeInterval interval;
1870
PyObject* py_interval = NULL, * py_single = NULL, * py_on_timer = NULL;
1871
int single;
1872
- runloop = CFRunLoopGetCurrent();
+ runloop = CFRunLoopGetMain();
1873
if (!runloop) {
1874
PyErr_SetString(PyExc_RuntimeError, "Failed to obtain run loop");
1875
return NULL;
0 commit comments