We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee525c commit ac13957Copy full SHA for ac13957
ui/src/main/java/com/wireguard/android/updater/Updater.kt
@@ -312,13 +312,18 @@ object Updater {
312
session.close()
313
}
314
315
+ private var updating = false
316
private suspend fun downloadAndUpdateWrapErrors() {
317
+ if (updating)
318
+ return
319
+ updating = true
320
try {
321
downloadAndUpdate()
322
} catch (e: Throwable) {
323
Log.e(TAG, "Update failure", e)
324
emitProgress(Progress.Failure(e))
325
326
+ updating = false
327
328
329
private class InstallReceiver : BroadcastReceiver() {
0 commit comments