Commit 010b09674cc2371cd24a78350c6d2a6b7e3050fc
1 parent
2166ec93
主动连接zlm事件修改为10分钟
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java
| @@ -104,7 +104,7 @@ public class ZLMRunner implements CommandLineRunner { | @@ -104,7 +104,7 @@ public class ZLMRunner implements CommandLineRunner { | ||
| 104 | }); | 104 | }); |
| 105 | } | 105 | } |
| 106 | Timer timer = new Timer(); | 106 | Timer timer = new Timer(); |
| 107 | - // 2分钟后未连接到则不再去主动连接, TODO 并对重启前使用此在zlm的通道发送bye | 107 | + // 10分钟后未连接到则不再去主动连接, TODO 并对重启前使用此在zlm的通道发送bye |
| 108 | timer.schedule(new TimerTask() { | 108 | timer.schedule(new TimerTask() { |
| 109 | @Override | 109 | @Override |
| 110 | public void run() { | 110 | public void run() { |
| @@ -117,7 +117,7 @@ public class ZLMRunner implements CommandLineRunner { | @@ -117,7 +117,7 @@ public class ZLMRunner implements CommandLineRunner { | ||
| 117 | } | 117 | } |
| 118 | // TODO 清理数据库中与redis不匹配的zlm | 118 | // TODO 清理数据库中与redis不匹配的zlm |
| 119 | } | 119 | } |
| 120 | - }, 60 * 1000 * 2); | 120 | + }, 60 * 1000 * 10); |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | @Async | 123 | @Async |