mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibCore: Make TCPServer::listen() report failure instead of asserting
This commit is contained in:
parent
d79194d87f
commit
f88a7cd4e1
Notes:
sideshowbarker
2024-07-19 02:08:24 +09:00
Author: https://github.com/awesomekling
Commit: f88a7cd4e1
3 changed files with 15 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue