summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index b48e74797..98fb4b372 100644
--- a/src/main.c
+++ b/src/main.c
@@ -275,6 +275,7 @@ static void services_shutdown(void)
}
send_event(EVENT_SHUTDOWN, 1, EVENT_STOP);
disconn(servsock);
+ modules_unload_all(); /* Only legitimate use of this function */
}
/*************************************************************************/