Skip to content

Commit

Permalink
Fix RECONNECT loop for IRC
Browse files Browse the repository at this point in the history
Fix RECONNECT loop for IRC
  • Loading branch information
chillymosh committed May 21, 2023
1 parent 3c05916 commit be7c763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Master
- Fix :func:`~twitchio.Client.search_categories` due to :attr:`~twitchio.Game.igdb_id` being added to :class:`~twitchio.Game`
- Made Chatter :attr:`~twitchio.Chatter.id` property public
- :func:`~twitchio.Client.event_token_expired` will now be called correctly when response is ``401 Invalid OAuth token``
- Fix reconnect loop when Twitch sends a RECONNECT via IRC websocket

- Other
- [speed] extra
Expand Down
1 change: 1 addition & 0 deletions twitchio/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ async def _connect(self):

await self.authenticate(self._initial_channels)

self._reconnect_requested = False
self._keeper = asyncio.create_task(self._keep_alive()) # Create our keep alive.

if not self._task_cleaner or self._task_cleaner.done():
Expand Down

0 comments on commit be7c763

Please sign in to comment.