提交 03678073 authored 作者: yangli's avatar yangli

.

上级 0516e9d7
...@@ -351,6 +351,7 @@ public class MqttServiceImpl implements MqttService, MqttHandler, MqttClientCall ...@@ -351,6 +351,7 @@ public class MqttServiceImpl implements MqttService, MqttHandler, MqttClientCall
return; return;
} }
if ("remote_control_exit".equals(mqttRpcDataMessage.getMethod())) { if ("remote_control_exit".equals(mqttRpcDataMessage.getMethod())) {
remoteControlController.timer.cancel();
Runtime.getRuntime().exec("cmd /c net stop uvnc_service"); Runtime.getRuntime().exec("cmd /c net stop uvnc_service");
return; return;
} }
......
...@@ -72,7 +72,7 @@ public class RemoteControlController { ...@@ -72,7 +72,7 @@ public class RemoteControlController {
return startVncServer(minutes); return startVncServer(minutes);
} }
private Timer timer = new Timer(); public Timer timer = new Timer();
public synchronized R<Void> startVncServer(long minutes) public synchronized R<Void> startVncServer(long minutes)
throws IOException, ConfigParser.DuplicateSectionException, ConfigParser.NoSectionException, InterruptedException { throws IOException, ConfigParser.DuplicateSectionException, ConfigParser.NoSectionException, InterruptedException {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论