parent
004fd7646b
commit
c212d90408
@ -231,8 +231,12 @@ class NextcloudApiHelper(val context: Context) {
|
|||||||
.url("$server/ocs/v2.php/core/apppassword")
|
.url("$server/ocs/v2.php/core/apppassword")
|
||||||
.build()
|
.build()
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
val response = httpClient.newCall(request).execute()
|
try {
|
||||||
response
|
val response = httpClient.newCall(request).execute()
|
||||||
|
response
|
||||||
|
} catch (e: IOException) {
|
||||||
|
Log.e("NextcloudApiHelper", "Error during Nextcloud logout", e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
preferences.edit {
|
preferences.edit {
|
||||||
putString("server", null)
|
putString("server", null)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user