Commits

Ryan Williams committed d85be41

Reversed order of operations in kill() to make the killing more immediate.

  • Participants
  • Parent commits 103e0d5

Comments (0)

Files changed (1)

File eventlet/greenthread.py

                 g.main(just_raise, (), {})
             except:
                 pass
-    hub.schedule_call_global(0, g.throw, *throw_args)
     if getcurrent() is not hub.greenlet:
-        sleep(0)
+        # arrange to wake the caller back up immediately
+        hub.schedule_call_global(0,getcurrent().switch)
+    g.throw(*throw_args)