Skip to content

Commit

Permalink
Don't set ACL channels online immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Aug 7, 2024
1 parent fe80526 commit f705cc1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,11 +717,11 @@ async def _run(self):
# remove all ACL channels that already exist from the other set
acl_channels.difference_update(new_channels)
# use the other set to set them online if possible
if acl_channels:
await asyncio.gather(
*(channel.update_stream(trigger_events=False) for channel in acl_channels),
return_exceptions=True,
)
# if acl_channels:
# await asyncio.gather(*(
# channel.update_stream(trigger_events=False)
# for channel in acl_channels
# ))
# finally, add them as new channels
new_channels.update(acl_channels)
for game in no_acl:
Expand Down

0 comments on commit f705cc1

Please sign in to comment.