Karan Adhikari commited on
Commit
f07c3a4
·
unverified ·
1 Parent(s): f97130e

Update stream_routes.py

Browse files
Backend/fastapi/routes/stream_routes.py CHANGED
@@ -408,7 +408,7 @@ async def get_stream_stats():
408
  # No data flow → check inactivity timeout
409
  if now - info["last_activity_ts"] > INACTIVE_TIMEOUT:
410
  if status == "active":
411
- info["status"] = "inactive"
412
  info["end_ts"] = now
413
 
414
  if info.get("status") in ("cancelled", "error", "finished", "inactive"):
 
408
  # No data flow → check inactivity timeout
409
  if now - info["last_activity_ts"] > INACTIVE_TIMEOUT:
410
  if status == "active":
411
+ info["status"] = "cancelled"
412
  info["end_ts"] = now
413
 
414
  if info.get("status") in ("cancelled", "error", "finished", "inactive"):