Commit b3a3d242 authored by Denis Bilenko's avatar Denis Bilenko

remove unnecessary precautions

parent df3bacbf
...@@ -84,17 +84,7 @@ class GreenletLink(object): ...@@ -84,17 +84,7 @@ class GreenletLink(object):
error = LinkedCompleted(source) error = LinkedCompleted(source)
else: else:
error = LinkedFailed(source) error = LinkedFailed(source)
current = getcurrent() self.greenlet.throw(error)
greenlet = self.greenlet
if current is greenlet:
greenlet.throw(error)
elif current is get_hub():
try:
greenlet.throw(error)
except:
traceback.print_exc()
else:
kill(self.greenlet, error)
def __hash__(self): def __hash__(self):
return hash(self.greenlet) return hash(self.greenlet)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment