summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d55b349..dff18c9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,8 +21,10 @@ static void signal_handler(int sig)
{
static bool term = false;
- if (term)
+ if (term) {
+ mod_close();
exit(0);
+ }
term = true;