Browse Source

bitwarden: unset BW_SESSION after logging out

Previously, 'bw logout' would give an error 'vault is locked' since we
unset the env variable too early.
Sean Farley 7 years ago
parent
commit
0fa884419b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bitwarden.el

+ 2 - 2
bitwarden.el

@@ -154,8 +154,8 @@ for common errors."
   "Log out bw.  Does not ask for confirmation."
   (interactive)
   (when (bitwarden-logged-in-p)
-    (setenv "BW_SESSION" nil)
-    (bitwarden-runcmd "logout")))
+    (bitwarden-runcmd "logout")
+    (setenv "BW_SESSION" nil)))
 
 (provide 'bitwarden)