- // Only block if there wasn't alrady a tstate. This cen happen with
- // nested calls to wxPyBeginBlockThreads
+ // Only block if there wasn't already a tstate, or if the current one is
+ // not the one we are wanting to change to. This should prevent deadlock
+ // if there are nested calls to wxPyBeginBlockThreads