Spaces:
Running
on
T4
Running
on
T4
Mark Duppenthaler
commited on
Commit
•
a5278e3
1
Parent(s):
6a17cbc
Check int type
Browse files
seamless_server/app_pubsub.py
CHANGED
@@ -127,7 +127,7 @@ MAX_SPEAKERS = os.environ.get("MAX_SPEAKERS")
|
|
127 |
|
128 |
if os.environ.get("LOCK_SERVER_COMPLETELY", "0") == "1":
|
129 |
logger.info("LOCK_SERVER_COMPLETELY is set. Server will be locked on startup.")
|
130 |
-
if MAX_SPEAKERS is not None:
|
131 |
logger.info(f"MAX_SPEAKERS is set to: {MAX_SPEAKERS}")
|
132 |
dummy_server_lock_member_object = Member(
|
133 |
client_id="seamless_user", session_id="dummy", name="Seamless User"
|
|
|
127 |
|
128 |
if os.environ.get("LOCK_SERVER_COMPLETELY", "0") == "1":
|
129 |
logger.info("LOCK_SERVER_COMPLETELY is set. Server will be locked on startup.")
|
130 |
+
if MAX_SPEAKERS is not None and int(MAX_SPEAKERS):
|
131 |
logger.info(f"MAX_SPEAKERS is set to: {MAX_SPEAKERS}")
|
132 |
dummy_server_lock_member_object = Member(
|
133 |
client_id="seamless_user", session_id="dummy", name="Seamless User"
|