Fix save thread not actually saving, increase to 5 minutes
authorFrank Duncan <frank.d.duncan@gmail.com>
Sat, 18 Dec 2021 18:19:39 +0000 (12:19 -0600)
committerFrank Duncan <frank.d.duncan@gmail.com>
Sat, 18 Dec 2021 18:19:39 +0000 (12:19 -0600)
src/main/server.lisp

index bdf8d77c4e3c31fc27f427581cb64717bf4beb7c..7d7af0b8113767bde967a93be51cf4507b930e04 100644 (file)
        :while active
        :do
        (sb-thread:with-mutex (mutex)
-        (sb-thread:condition-wait waitq mutex)))
-      (lame-db:save-known-dbs data-dir))
+        (sb-thread:condition-wait waitq mutex)
+        (lame-db:save-known-dbs data-dir))))
      :name "Save Thread")))
   (sb-thread:make-thread
    (lambda ()
     (loop
-     (sleep (* 1 60))
+     (sleep (* 5 60))
      (sb-thread:with-mutex (mutex)
       (sb-thread:condition-broadcast waitq))))
    :name "Save Thread Trigger")