Skip to content

Commit cdc2ea3

Browse files
committed
Handle websocket connection timeouts
1 parent aa7ebf5 commit cdc2ea3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plexwebsocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async def running(self):
109109
_LOGGER.error("AIOHTTP websocket error")
110110
break
111111

112-
except aiohttp.ClientConnectionError as error:
112+
except (aiohttp.ClientConnectionError, asyncio.TimeoutError) as error:
113113
if self.state != STATE_STOPPED:
114114
retry_delay = min(2 ** (self.failed_attempts - 1) * 30, 300)
115115
self.failed_attempts += 1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
with open('README.md') as f:
44
long_description = f.read()
55

6-
VERSION="0.0.10"
6+
VERSION="0.0.11"
77

88
setup(
99
name='plexwebsocket',

0 commit comments

Comments
 (0)