about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--litterbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/litterbox.c b/litterbox.c
index 5d48b7a..24d5733 100644
--- a/litterbox.c
+++ b/litterbox.c
@@ -752,8 +752,8 @@ static void handle(struct Message *msg) {
 }
 
 static void atExit(void) {
-	if (client) tls_close(client);
 	dbClose();
+	if (client) tls_close(client);
 }
 
 static void quit(int sig) {