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 @@ public class SipLayer implements SipListener { private ThreadPoolExecutor processThreadPool; @Bean("initSipServer") - @DependsOn("allOffline") - private void initSipServer() { + private ThreadPoolExecutor initSipServer() { int processThreadNum = Runtime.getRuntime().availableProcessors() * 10; LinkedBlockingQueue processQueue = new LinkedBlockingQueue(10000); processThreadPool = new ThreadPoolExecutor(processThreadNum,processThreadNum, 0L,TimeUnit.MILLISECONDS,processQueue, new ThreadPoolExecutor.CallerRunsPolicy()); + return processThreadPool; } @Bean("sipFactory")