From a034b495e8e8b3c555448b6a78453a30c00b09e4 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 12 Aug 2025 18:57:01 -0400 Subject: [PATCH] Removes checks --- .../main/java/com/vitorpamplona/amethyst/ui/tor/TorService.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/tor/TorService.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/tor/TorService.kt index 7d760d3ff..5cd75cd5c 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/tor/TorService.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/tor/TorService.kt @@ -27,7 +27,6 @@ import android.content.Intent import android.content.ServiceConnection import android.os.IBinder import android.util.Log -import com.vitorpamplona.amethyst.service.checkNotInMainThread import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.channels.awaitClose import kotlinx.coroutines.delay @@ -55,7 +54,7 @@ class TorService( name: ComponentName, service: IBinder, ) { - launch { + launch(Dispatchers.IO) { // moved torService to a local variable, since we only need it once val torService = (service as LocalBinder).service @@ -77,7 +76,6 @@ class TorService( ) awaitClose { - checkNotInMainThread() Log.d("TorService", "Stopping Tor Service") launch { context.stopService(currentIntent)