During disconnection flow when the code tries to kill the greenlets it throws an exception "Cannot convert greenlet.greenlet to gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop"
It occurs occassionally, say 1 out of 10 times.
This is how I'm creating and killing greenlets.
//Create
routine = gevent.spawn(Routine)
//kill
if routine:
if not routine.dead:
routine.kill() // exception thrown from here
routine = None
These routines are also not blocked anywhere when kill is called.
Perhaps I'm doing something wrong?