broken; it asked for the current thread state when there was none.
Fixed by using the saved event_tstate.
static int
EventHook()
{
-#if defined(WITH_THREAD) || defined(MS_WINDOWS)
- PyThreadState *tstate = PyThreadState_Get();
-#endif
#ifndef MS_WINDOWS
FHANDLE tfile;
#endif
#if defined(WITH_THREAD) || defined(MS_WINDOWS)
Py_BEGIN_ALLOW_THREADS
acquire_lock(tcl_lock, 1);
- tcl_tstate = tstate;
+ tcl_tstate = event_tstate;
result = Tcl_DoOneEvent(TCL_DONT_WAIT);