Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
fix(async): Fix critical misbehavior
Browse files Browse the repository at this point in the history
  • Loading branch information
nekonekun committed Jul 26, 2023
1 parent 70ff952 commit 78e9d95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tacacs_plus/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ async def flow_control(self, reader=None, writer=None):
if not existing:
# if reader/writer were not provided -
# we need to properly close socket and writer
writer.close()
await writer.wait_closed()
yielded_writer.close()
await yielded_writer.wait_closed()
sock.close()

async def send(self, body, req_type, seq_no=1, reader=None, writer=None):
Expand Down

0 comments on commit 78e9d95

Please sign in to comment.