mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-23 15:58:02 +00:00
Make close behaviour consistent across new protocols and transports (#660)
This commit is contained in:
@@ -265,10 +265,12 @@ class AesTransport(BaseTransport):
|
||||
return await self.send_secure_passthrough(request)
|
||||
|
||||
async def close(self) -> None:
|
||||
"""Close the transport."""
|
||||
"""Mark the handshake and login as not done.
|
||||
|
||||
Since we likely lost the connection.
|
||||
"""
|
||||
self._handshake_done = False
|
||||
self._login_token = None
|
||||
await self._http_client.close()
|
||||
|
||||
|
||||
class AesEncyptionSession:
|
||||
|
Reference in New Issue
Block a user