summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 8b43389..6576fb8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -72,7 +72,7 @@ int main (int argc, char ** argv) {
fflush(stderr);
rc:
xmlCleanupParser();
+ MHD_stop_daemon(d); /* stop the daemon first and the free, threads might still be running */
sc_cache_free(c);
- MHD_stop_daemon(d);
return rs;
}