mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Catch SSL shutdown errors when closing clients
This commit is contained in:
parent
b09798f2cf
commit
ee43d8cfb1
3 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue