chore: okhttp 5.1.0

This commit is contained in:
hstyi
2025-07-08 13:50:59 +08:00
committed by hstyi
parent e4e41667ff
commit 057da4e297
4 changed files with 4 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
package app.termora.plugins.bg
import app.termora.*
import app.termora.database.DatabaseManager
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.isActive
@@ -96,9 +95,7 @@ internal class BackgroundManager private constructor() : Disposable, GlassPaneAw
return
}
val body = response.body
if (body != null) {
tempFile.outputStream().use { IOUtils.copy(body.byteStream(), it) }
}
tempFile.outputStream().use { IOUtils.copy(body.byteStream(), it) }
IOUtils.closeQuietly(body)
return@use tempFile
}