Added MG_SHUTDOWN event

This commit is contained in:
Sergey Lyubka committed 2012-08-16 17:24:33 +01:00
1 parent 6add727c72
commit 15a0d819ed
2 files changed
+3 -1

No files matched your search

+1
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