|
@@ -321,7 +321,7 @@ class ModifierService : AccessibilityService(), Emitter.Listener {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private suspend fun runTask(taskAction: TaskAction) {
|
|
private suspend fun runTask(taskAction: TaskAction) {
|
|
|
- if (checkingConnection.value!! || running.value!!) {
|
|
|
|
|
|
|
+ if (checkingConnection.value!! || running.value!! || preparing.value!! || requesting.value!!) {
|
|
|
mSocket.emit(
|
|
mSocket.emit(
|
|
|
"callback",
|
|
"callback",
|
|
|
JSONObject(
|
|
JSONObject(
|
|
@@ -712,6 +712,9 @@ class ModifierService : AccessibilityService(), Emitter.Listener {
|
|
|
) {
|
|
) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if (requesting.value!!) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
requestNumberCount++
|
|
requestNumberCount++
|
|
|
requesting.postValue(true)
|
|
requesting.postValue(true)
|
|
|
val result = withTimeoutOrNull(1.hours) {
|
|
val result = withTimeoutOrNull(1.hours) {
|