mirror of
https://github.com/lammertb/libhttp.git
synced 2026-01-03 16:02:30 +03:00
Added MG_SHUTDOWN event
This commit is contained in:
@@ -4303,6 +4303,7 @@ static void free_context(struct mg_context *ctx) {
|
||||
}
|
||||
|
||||
void mg_stop(struct mg_context *ctx) {
|
||||
call_user(fc(ctx), MG_SHUTDOWN);
|
||||
ctx->stop_flag = 1;
|
||||
|
||||
// Wait until mg_fini() stops
|
||||
|
||||
Reference in New Issue
Block a user