Skip to content

Commit

Permalink
Handle websocket connection timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlawren committed Jun 17, 2020
1 parent aa7ebf5 commit cdc2ea3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plexwebsocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def running(self):
_LOGGER.error("AIOHTTP websocket error")
break

except aiohttp.ClientConnectionError as error:
except (aiohttp.ClientConnectionError, asyncio.TimeoutError) as error:
if self.state != STATE_STOPPED:
retry_delay = min(2 ** (self.failed_attempts - 1) * 30, 300)
self.failed_attempts += 1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with open('README.md') as f:
long_description = f.read()

VERSION="0.0.10"
VERSION="0.0.11"

setup(
name='plexwebsocket',
Expand Down

0 comments on commit cdc2ea3

Please sign in to comment.