Open tvoinarovskyi opened 9 years ago
It's an easy fix after #49, but needs some descend tests I think. It's easy to encounter this issue when doing reconnect (you will want a wait_for wrapper just in case)
Thanks for the bug report. I can probably take a look at this tomorrow
Ok, It seems harder than I thought if would be... Even after I patched the synchroniser it fails, cause the reader.ready()
is not called. We can replace the code so reader.ready
is called even if we cancel the coroutine, but I find it disturbing to do so...
I thought it would be as easy fix as this commit but if doesn't work =(
Basically the Synchroniser must discard cancelled futures. Example: