branch: externals/dtache
commit 3c61776c7f5c1a3cca6216235050c77b5ec8aa5f
Author: Niklas Eklund <[email protected]>
Commit: Niklas Eklund <[email protected]>

    Fix dtache initialization
    
    Fix dtache-initialize. The session directory needs to always be
    checked and maybe created. The reason is that the user can have
    initialized the connection to the database whilst on a remote
    machine. Then on the local machine the check for initialization of the
    database will be skipped, this patch makes sure that doesn't happen.
---
 dtache.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dtache.el b/dtache.el
index ad74a3b5ac..82838d59f6 100644
--- a/dtache.el
+++ b/dtache.el
@@ -175,8 +175,8 @@
   "Initialize `dtache'."
   (unless dtache-db
     (dtache-db-initialize)
-    (dtache-create-session-directory)
-    (dtache-cleanup-sessions)))
+    (dtache-cleanup-sessions))
+  (dtache-create-session-directory))
 
 ;;;;; Database
 

Reply via email to