From f9ab13a14590d310937de7d78a36ee599dce750b Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期二, 13 十月 2020 17:16:38 +0800 Subject: [PATCH] 添加通道音频设置 添加media配置 --- src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java b/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java index 9cc9c25..b219f3e 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java @@ -54,14 +54,14 @@ private ThreadPoolExecutor processThreadPool; @Bean("initSipServer") - @DependsOn("allOffline") - private void initSipServer() { + private ThreadPoolExecutor initSipServer() { int processThreadNum = Runtime.getRuntime().availableProcessors() * 10; LinkedBlockingQueue<Runnable> processQueue = new LinkedBlockingQueue<Runnable>(10000); processThreadPool = new ThreadPoolExecutor(processThreadNum,processThreadNum, 0L,TimeUnit.MILLISECONDS,processQueue, new ThreadPoolExecutor.CallerRunsPolicy()); + return processThreadPool; } @Bean("sipFactory") -- Gitblit v1.8.0