Open shipmints opened 4 years ago
I'm running into the same problem. This causes deliver_message
to hang instead of raising to indicate the connection closed.
Shipmint's suggestion above seems to fix the issue.
I am getting the same error with hbmqtt==0.9.6
set_exception was removed from asyncio some time ago per https://bugs.python.org/issue32363
The modern implementation, which simply pukes a RuntimeErrror...
...causes handle_connection_close cancel_tasks loop to fail on the first set_exception call. It's not clear what this loop is trying to accomplish since it isn't canceling any pending tasks.
Perhaps it should be?