mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-10-28 08:20:49 +08:00
fix: 修复扩展服务开启和自启动状态错误
This commit is contained in:
@@ -643,8 +643,12 @@ async fn main() -> anyhow::Result<()> {
|
||||
}
|
||||
|
||||
{
|
||||
let runtime_config = state.config.get();
|
||||
let runtime_config = state.runtime_third_party_config().await;
|
||||
let constraints = StreamCodecConstraints::from_config(&runtime_config);
|
||||
state
|
||||
.stream_manager
|
||||
.set_runtime_codec_constraints(constraints.clone())
|
||||
.await;
|
||||
match enforce_constraints_with_stream_manager(&state.stream_manager, &constraints).await {
|
||||
Ok(result) if result.changed => {
|
||||
if let Some(message) = result.message {
|
||||
|
||||
Reference in New Issue
Block a user