Spaces:
Sleeping
Sleeping
Space-Face
commited on
Commit
•
4ea9251
1
Parent(s):
961b061
Update SpaceFace.py
Browse files- SpaceFace.py +1 -1
SpaceFace.py
CHANGED
@@ -132,7 +132,7 @@ def monitor_users():
|
|
132 |
global users
|
133 |
while True:
|
134 |
time.sleep(1)
|
135 |
-
for k, v in users:
|
136 |
if time.time() - v.last_request >= 300:
|
137 |
del users[k]
|
138 |
def start_server(endpoints):
|
|
|
132 |
global users
|
133 |
while True:
|
134 |
time.sleep(1)
|
135 |
+
for k, v in users.items():
|
136 |
if time.time() - v.last_request >= 300:
|
137 |
del users[k]
|
138 |
def start_server(endpoints):
|