Commits

Alex Gaynor  committed 6dad1c1 Merge

merged upstream

  • Participants
  • Parent commits 7c36492, 2293ffe

Comments (0)

Files changed (1)

File pypy/module/_continuation/interp_continuation.py

     def switch(self, w_to):
         to = self.space.interp_w(W_Continulet, w_to, can_be_None=True)
         if to is not None:
-            if self is to:    # double-switch to myself: no-op
-                return get_result()
             if to.sthread is None:
                 start_state.clear()
                 raise geterror(self.space, "continulet not initialized yet")
+            if self is to:    # double-switch to myself: no-op
+                return get_result()
         if self.sthread is None:
             start_state.clear()
             raise geterror(self.space, "continulet not initialized yet")