Browse Source

解决无法启动的问题

swwheihei 5 years ago
parent
commit
4abeadc636
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java

+ 2 - 2
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<Runnable> processQueue = new LinkedBlockingQueue<Runnable>(10000);
 		processThreadPool = new ThreadPoolExecutor(processThreadNum,processThreadNum,
 				0L,TimeUnit.MILLISECONDS,processQueue,
 				new ThreadPoolExecutor.CallerRunsPolicy());
+		return processThreadPool;
 	}
 	
 	@Bean("sipFactory")