Ignore SocketException

This commit is contained in:
Artem Chepurnoy 2024-01-08 18:27:59 +02:00
parent 5f8a65cc8f
commit 2d090b4a86
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 3 additions and 1 deletions

View File

@ -7,11 +7,13 @@ import com.google.firebase.crashlytics.ktx.crashlytics
import com.google.firebase.crashlytics.setEnabled
import com.google.firebase.ktx.Firebase
import kotlinx.coroutines.flow.Flow
import java.net.SocketException
import java.net.UnknownHostException
actual fun recordException(e: Throwable) {
if (
e is UnknownHostException
e is UnknownHostException ||
e is SocketException
) {
return
}