Make HTTPServer ignore responses that cannot be sent

This commit is contained in:
2022-03-30 22:19:33 -05:00
parent 3d7d583367
commit 514a578260
3 changed files with 12 additions and 2 deletions

View File

@@ -128,7 +128,9 @@ export class HTTPServer extends Unit {
await error(new ErrorWithContext('Unknown error occurred.', { e }))
}
await extolloReq.response.send()
if ( extolloReq.response.canSend() ) {
await extolloReq.response.send()
}
})
}
}