Commit b3a3d242 authored by Denis Bilenko's avatar Denis Bilenko

remove unnecessary precautions

parent df3bacbf
......@@ -84,17 +84,7 @@ class GreenletLink(object):
error = LinkedCompleted(source)
else:
error = LinkedFailed(source)
current = getcurrent()
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)
self.greenlet.throw(error)
def __hash__(self):
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