From becaf839aaf4566054ffafdecfd191ff4ff8645d Mon Sep 17 00:00:00 2001 From: Andres Aguilar Date: Sat, 22 Aug 2020 19:32:26 -0700 Subject: [PATCH] Update app/src/main/java/org/jellyfin/mobile/utils/ServerConnectionUtils.kt :+1 Co-authored-by: Niels van Velzen --- .../java/org/jellyfin/mobile/utils/ServerConnectionUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/jellyfin/mobile/utils/ServerConnectionUtils.kt b/app/src/main/java/org/jellyfin/mobile/utils/ServerConnectionUtils.kt index 3e135763..b9f8bcae 100644 --- a/app/src/main/java/org/jellyfin/mobile/utils/ServerConnectionUtils.kt +++ b/app/src/main/java/org/jellyfin/mobile/utils/ServerConnectionUtils.kt @@ -71,7 +71,7 @@ suspend fun fetchServerInfo(httpClient: OkHttpClient, url: HttpUrl): String? { return withContext(Dispatchers.IO) { try { request.execute().use { it.body?.string() } - }catch (e:IOException){ + } catch (e: IOException) { null } }