From 7a6e2cd00ba3d5b28673b9df3941578940ca9c66 Mon Sep 17 00:00:00 2001 From: Henrik Muehe Date: Sun, 3 May 2026 14:04:03 +0200 Subject: [PATCH] Camera: replace deprecated @web.asynchronous with async def Tornado removed @web.asynchronous in 6.x; bbctrl on the Pi runs an older but compatible async-aware build. Switching to coroutine syntax keeps the streaming endpoint working across Tornado 5/6. --- src/py/bbctrl/Camera.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/py/bbctrl/Camera.py b/src/py/bbctrl/Camera.py index da42be1..87059eb 100644 --- a/src/py/bbctrl/Camera.py +++ b/src/py/bbctrl/Camera.py @@ -468,8 +468,7 @@ class VideoHandler(web.RequestHandler): self.camera = app.camera - @web.asynchronous - def get(self): + async def get(self): self.request.connection.stream.max_write_buffer_size = 10000 self.set_header('Cache-Control', 'no-store, no-cache, must-revalidate, '