1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

make taskFailed non-fatal

turns out we can end up here when an http client unexpectedly
drops the connection, so it must not cause an exit()
This commit is contained in:
Oliver Giles 2021-05-03 09:18:06 +12:00
parent b16991b17a
commit 02810309fc

View File

@ -157,7 +157,5 @@ kj::Promise<void> Server::handleFdRead(kj::AsyncInputStream* stream, char* buffe
void Server::taskFailed(kj::Exception &&exception) {
//kj::throwFatalException(kj::mv(exception));
// prettier
fprintf(stderr, "fatal: %s\n", exception.getDescription().cStr());
exit(EXIT_FAILURE);
fprintf(stderr, "taskFailed: %s\n", exception.getDescription().cStr());
}