Skip to content

Commit

Permalink
actually restart on bad frame
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmTomahawkx committed Mar 21, 2024
1 parent 9abe3ce commit d1687fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

on_rtd = os.environ.get("READTHEDOCS") == "True"
project = "TwitchIO"
copyright = "2023, TwitchIO"
copyright = "2024, TwitchIO"
author = "PythonistaGuild"

# The full version, including alpha/beta/rc tags
Expand Down
4 changes: 2 additions & 2 deletions twitchio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
__title__ = "TwitchIO"
__author__ = "TwitchIO, PythonistaGuild"
__license__ = "MIT"
__copyright__ = "Copyright 2017-2022 (c) TwitchIO"
__version__ = "2.8.2"
__copyright__ = "Copyright 2017-present (c) TwitchIO"
__version__ = "2.9.1"

from .client import Client
from .user import *
Expand Down
2 changes: 1 addition & 1 deletion twitchio/ext/eventsub/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ async def pump(self) -> None:
except TypeError as e:
logger.warning(f"Received bad frame: {e.args[0]}")

if e.args[0] is None: # websocket was closed, reconnect
if "257" in e.args[0]: # websocket was closed, reconnect
logger.info("Known bad frame, restarting connection")
await self.connect()
return
Expand Down

0 comments on commit d1687fc

Please sign in to comment.