about summary refs log tree commit diff stats
path: root/src/LYClean.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYClean.c')
-rw-r--r--src/LYClean.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LYClean.c b/src/LYClean.c
index 0ba852d3..113cc7cf 100644
--- a/src/LYClean.c
+++ b/src/LYClean.c
@@ -187,7 +187,8 @@ PUBLIC void cleanup NOARGS
      * handle two processes writing to the cookie file needs to be worked
      * out as well.
      */
-    LYStoreCookies (LYCookieFile);
+    if (persistent_cookies)
+	LYStoreCookies (LYCookieFile);
 #endif
 
     cleanup_files();