diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/util/KillableTileService.kt b/mobile/src/main/java/be/mygod/vpnhotspot/util/KillableTileService.kt index 3ab14bf0..ead7e063 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/util/KillableTileService.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/util/KillableTileService.kt @@ -29,7 +29,8 @@ abstract class KillableTileService : TileService(), ServiceConnection { override fun onBind(intent: Intent?) = try { super.onBind(intent) - } catch (_: DeadObjectException) { + } catch (e: RuntimeException) { + if (e.cause !is DeadObjectException) throw e null }.also { BootReceiver.startIfEnabled() } }