Catch SSL shutdown errors when closing clients
This commit is contained in:
@@ -31,7 +31,7 @@ proc createMediaRouter*(cfg: Config) =
|
||||
let client = newAsyncHttpClient()
|
||||
try:
|
||||
await client.downloadFile($uri, filename)
|
||||
client.close()
|
||||
client.safeClose()
|
||||
except HttpRequestError:
|
||||
removeFile(filename)
|
||||
resp Http404
|
||||
|
||||
Reference in New Issue
Block a user