From 01f1edab3c955d1e2f35c06c5b27695377c6c935 Mon Sep 17 00:00:00 2001 From: Blatzar <46196380+Blatzar@users.noreply.github.com> Date: Thu, 26 Jan 2023 00:34:55 +0100 Subject: [PATCH] webview crash fix --- .../com/lagradost/cloudstream3/network/CloudflareKiller.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/network/CloudflareKiller.kt b/app/src/main/java/com/lagradost/cloudstream3/network/CloudflareKiller.kt index 068cb968..6950d961 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/network/CloudflareKiller.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/network/CloudflareKiller.kt @@ -64,7 +64,9 @@ class CloudflareKiller : Interceptor { } private fun getWebViewCookie(url: String): String? { - return CookieManager.getInstance()?.getCookie(url) + return normalSafeApiCall { + CookieManager.getInstance()?.getCookie(url) + } } /**