Shifted closing of pool connections better
This commit is contained in:
parent
25cfc53674
commit
5dbe29c8e9
|
@ -185,8 +185,8 @@ fun getServer(cache: DiskLruCache, serverSettings: ServerSettings, clientSetting
|
|||
|
||||
editor.abort()
|
||||
}
|
||||
mdResponse.close()
|
||||
}
|
||||
mdResponse.close()
|
||||
respondWithImage(tee, contentLength, contentType, lastModified)
|
||||
} else {
|
||||
editor?.abort()
|
||||
|
@ -194,7 +194,7 @@ fun getServer(cache: DiskLruCache, serverSettings: ServerSettings, clientSetting
|
|||
if (LOGGER.isTraceEnabled) {
|
||||
LOGGER.trace("Request for $sanitizedUri is being served")
|
||||
}
|
||||
|
||||
mdResponse.close()
|
||||
respondWithImage(mdResponse.body.stream, contentLength, contentType, lastModified)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue