feat: 完成数码管websocket通信
This commit is contained in:
@@ -80,7 +80,6 @@ public class HttpHdmiVideoStreamService : BackgroundService
|
||||
public override async Task StopAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
logger.Info("Stopping HDMI Video Stream Service...");
|
||||
_httpListener?.Close();
|
||||
|
||||
// 禁用所有活跃的HDMI传输
|
||||
var disableTasks = new List<Task>();
|
||||
@@ -95,7 +94,6 @@ public class HttpHdmiVideoStreamService : BackgroundService
|
||||
// 清空字典
|
||||
_clientDict.Clear();
|
||||
|
||||
_httpListener?.Close(); // 立即关闭监听器,唤醒阻塞
|
||||
await base.StopAsync(cancellationToken);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user