From 82faa581e7a8045540390e6b7aba3b4a164770fa Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 27 Nov 2024 21:57:56 +0100 Subject: [PATCH] Fix is_alive --- samsungtvws/encrypted/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samsungtvws/encrypted/remote.py b/samsungtvws/encrypted/remote.py index 9b06f99..e2de6aa 100644 --- a/samsungtvws/encrypted/remote.py +++ b/samsungtvws/encrypted/remote.py @@ -183,4 +183,4 @@ async def close(self) -> None: LOGGER.debug("Connection closed") def is_alive(self) -> bool: - return self._connection is not None and not self._connection.closed + return self._connection is not None and self._connection.protocol.close_code is None