Selaa lähdekoodia

Example for C: stop the server when the application exits

bel 10 vuotta sitten
vanhempi
commit
fa73c09d92
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      examples/embedded_c/embedded_c.c

+ 1 - 0
examples/embedded_c/embedded_c.c

@@ -106,6 +106,7 @@ int main(int argc, char *argv[])
 #endif
 #endif
     }
     }
 
 
+    mg_stop(ctx);
     printf("Bye!\n");
     printf("Bye!\n");
 
 
     return 0;
     return 0;