Skip to content

Commit

Permalink
await twitch.close() in chat (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
aw-was-here authored Feb 27, 2023
1 parent 34a5dc5 commit 99eebc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nowplaying/twitch/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, config=None, stopevent=None):
async def _try_custom_token(self, token):
''' if a custom token has been provided, try it. '''
if self.twitch and self.twitchcustom:
self.twitch.close()
await self.twitch.close()
if token:
try:
tokenval = await validate_token(token)
Expand Down Expand Up @@ -196,7 +196,7 @@ async def run_chat(self, twitchlogin): # pylint: disable=too-many-branches, too
continue
if self.twitch:
if self.twitchcustom:
self.twitch.close()
await self.twitch.close()
else:
await twitchlogin.api_logout()

Expand Down

0 comments on commit 99eebc3

Please sign in to comment.