Implemented logging client close errors

This commit is contained in:
dankito 2021-10-31 01:13:29 +02:00
parent d35a420c29
commit fad4c48b41
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ open class KtorWebClient : IWebClient {
try {
client.close()
} catch (e: Exception) {
log.error(e) { "Could not close client" }
// Cancel after timeout
client.cancel()
}