fix: 修复关闭串流时,服务器仍然读取camera数据的问题

This commit is contained in:
SikongJueluo 2025-07-09 14:07:47 +08:00
parent 443aea5e3e
commit 497fa731ca
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ public class HttpVideoStreamService : BackgroundService
{
var frameInterval = TimeSpan.FromMilliseconds(1000.0 / _frameRate);
while (!cancellationToken.IsCancellationRequested)
while (!cancellationToken.IsCancellationRequested && Enabled)
{
try
{