From 4aee4e654969704b9ebb5961984c93f3ea915fcc Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 29 Oct 2021 23:33:08 -0400 Subject: [PATCH] Handle stupid zzat errors --- .../src/google/java/be/mygod/vpnhotspot/util/UpdateChecker.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobile/src/google/java/be/mygod/vpnhotspot/util/UpdateChecker.kt b/mobile/src/google/java/be/mygod/vpnhotspot/util/UpdateChecker.kt index 42186214..7b39860a 100644 --- a/mobile/src/google/java/be/mygod/vpnhotspot/util/UpdateChecker.kt +++ b/mobile/src/google/java/be/mygod/vpnhotspot/util/UpdateChecker.kt @@ -58,5 +58,9 @@ object UpdateChecker { } catch (e: InstallException) { app.logEvent("InstallErrorCode") { param("errorCode", e.errorCode.toLong()) } throw AppUpdate.IgnoredException(e) + } catch (e: RuntimeException) { + if (e.message != "Failed to bind to the service.") throw e + app.logEvent("UpdateBindFailure") + throw AppUpdate.IgnoredException(e) } }