1. Pypy
  2. Untitled project
  3. pypy

Commits

Brian Kearns  committed 0fb9480

clean up the thread's signals enabled count on thread exit

  • Participants
  • Parent commits 04926eb
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/thread/threadlocals.py

View file
  • Ignore whitespace
                 del self._valuedict[ident]
             except KeyError:
                 pass
+            try:
+                del self._signalsenabled[ident]
+            except KeyError:
+                pass
         # update the minicache to prevent it from containing an outdated value
         self._mostrecentkey = ident
         self._mostrecentvalue = value