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.
This commit is contained in:
2026-05-03 14:04:03 +02:00
parent 785dafc3bc
commit 7a6e2cd00b

View File

@@ -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, '