Skip to content

Commit

Permalink
-> rm | delete 'nats: connection is closed' msg for fut.cancel to ens…
Browse files Browse the repository at this point in the history
…ure backward compatibility
  • Loading branch information
raprek authored and wallyqs committed Aug 10, 2023
1 parent 63e3186 commit ce4d765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ async def _close(self, status: int, do_cbs: bool = True) -> None:
# so cancel them here to unblock them.
if sub._pending_next_msgs_calls:
for fut in sub._pending_next_msgs_calls.values():
fut.cancel("nats: connection is closed")
fut.cancel()
sub._pending_next_msgs_calls.clear()
self._subs.clear()

Expand Down

0 comments on commit ce4d765

Please sign in to comment.