mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Added MG_SHUTDOWN event
This commit is contained in:
1 parent
6add727c72
commit
15a0d819ed
2 files changed
+3
-1
No files matched your search
@@ -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