Merge pull request #2029 from 21pages/stop-service

close all connections when stop service
This commit is contained in:
RustDesk
2022-11-09 18:02:17 +08:00
committed by GitHub
5 changed files with 40 additions and 9 deletions

View File

@@ -288,7 +288,7 @@ class _ConnectionPageState extends State<ConnectionPage>
offstage: !svcStopped.value,
child: GestureDetector(
onTap: () async {
bool checked =
bool checked = !bind.mainIsInstalled() ||
await bind.mainCheckSuperUserPermission();
if (checked) {
bind.mainSetOption(key: "stop-service", value: "");