From d0df987a306c010bb92596766651c0b4d0bd8eda Mon Sep 17 00:00:00 2001 From: dekzter Date: Sun, 9 Mar 2025 09:25:53 -0400 Subject: [PATCH] first attempt for unlimited streams support --- core/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/views.py b/core/views.py index 022f0fe8..a4f67fe3 100644 --- a/core/views.py +++ b/core/views.py @@ -83,7 +83,10 @@ def stream_view(request, stream_id): logger.debug(f'Profile has a max streams of {profile.max_streams}, checking if any are available') stream_index = 0 - while stream_index < profile.max_streams: + max_streams = profile.max_streams + if max_streams = 0: + max_streams = 999999 # maybe a better way than just hardcoding a high number... + while stream_index < max_streams: stream_index += 1 lock_key = f"lock:{profile.id}:{stream_index}"