fix(server): closed connections (#10013)

This commit is contained in:
Jason Rasmussen
2024-06-06 10:09:42 -04:00
committed by GitHub
parent ca12f3b15f
commit 4ad97ccded
3 changed files with 13 additions and 13 deletions

View File

@@ -65,7 +65,7 @@ export const sendFile = async (
await access(file.path, constants.R_OK);
return _sendFile(file.path, options);
return await _sendFile(file.path, options);
} catch (error: Error | any) {
// ignore client-closed connection
if (isConnectionAborted(error)) {