Open pohmelie opened 3 months ago
https://github.com/mosquito/aio-pika/blob/master/aio_pika/queue.py#L530 Since there is a non-handled timeout on close call it is possible to suppress original asyncio.CancelledError exception and actually stuck, if caller code will handle TimeoutError.
close
asyncio.CancelledError
TimeoutError
I just refactored #615 a bit so that is should fix this issue.
https://github.com/mosquito/aio-pika/blob/master/aio_pika/queue.py#L530 Since there is a non-handled timeout on
close
call it is possible to suppress originalasyncio.CancelledError
exception and actually stuck, if caller code will handleTimeoutError
.