1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:08:12 +00:00

LibCore: Make TCPServer::listen() report failure instead of asserting

This commit is contained in:
Andreas Kling 2020-09-28 21:59:13 +02:00
parent d79194d87f
commit f88a7cd4e1
3 changed files with 15 additions and 8 deletions

View file

@ -126,7 +126,7 @@ int main(int argc, char** argv)
}
if (!server->listen({}, port)) {
perror("listen");
warnf("Listening on 0.0.0.0:{} failed", port);
exit(1);
}