livepeer / catalyst-api

MIT License
4 stars 2 forks source link

Fix changing the viewerLimit while viewerLimit is changed #1305

Closed leszko closed 4 months ago

leszko commented 4 months ago

I changed the order of the checks, so now we first check if the gate allows the playback and only after we check the viewer limit.

There was an issue with the previous behavior that if the viewerLimit is exceeded than the GetPlaybackAccessControlInfo() was never called, which in result didn't allow changing the user's viewerLimit while the limit is already exceeded.