1
0
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:
Sergey Lyubka
2012-08-16 17:24:33 +01:00
parent 6add727c72
commit 15a0d819ed
2 changed files with 3 additions and 1 deletions

View File

@@ -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