close all connections when stop service

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-11-09 17:28:47 +08:00
parent 565c758bd7
commit dd04f76ec0
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: "");