diff --git a/network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/reddit/RedditBlockWorkaround.kt b/network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/reddit/RedditBlockWorkaround.kt index 0ea81e2bc975..95a6ca0a2f19 100644 --- a/network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/reddit/RedditBlockWorkaround.kt +++ b/network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/reddit/RedditBlockWorkaround.kt @@ -50,7 +50,9 @@ class RedditBlockWorkaround @Inject constructor( } } override fun onPause(owner: LifecycleOwner) { - removeRedditEmptyCookie() + owner.lifecycleScope.launch(dispatcherProvider.io()) { + removeRedditEmptyCookie() + } } private suspend fun addRedditEmptyCookie() {