Fixed ply and selfcheck bug

If copter is disconnected from server copter.refresh() stucks in while loop
This commit is contained in:
Igor Nurullaev
2019-09-06 17:40:44 +03:00
parent 416431dcca
commit 948e600f89
2 changed files with 5 additions and 3 deletions

View File

@@ -246,7 +246,7 @@ function askPermission(text, func) {
Ply.dialog("confirm",
{},
text
).done(function (e) {
).always(function (e) {
if (e.state) {
func();
}