Skip to content

Commit

Permalink
Fixing the crash if no listening sockets are available
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Mar 1, 2025
1 parent 43b4e37 commit 4cd2fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webserver/civetweb/civetweb.c
Original file line number Diff line number Diff line change
Expand Up @@ -20599,7 +20599,7 @@ master_thread_run(struct mg_context *ctx)
unsigned int i;
unsigned int workerthreadcount;

if (!ctx) {
if (!ctx || !ctx->listening_socket_fds) {
return;
}

Expand Down

0 comments on commit 4cd2fce

Please sign in to comment.