summary history branches tags files
commit:c6c187da00b3a80ac47b4a8ddbde9f1605d0a6d5
author:Trevor Bentley
committer:Trevor Bentley
date:Thu Apr 13 14:28:37 2017 +0200
parents:1f032131fdceb583231cf6fcba569617f9e3a0ee
Accidentally disabled re-using tokens.  Re-enabled.
diff --git a/src/webapi/mod.rs b/src/webapi/mod.rs
line changes: +1/-1
index ad8af34..f83a3e4
--- a/src/webapi/mod.rs
+++ b/src/webapi/mod.rs
@@ -366,7 +366,7 @@ impl SpotifyConnectr {
         let _ = self.schedule_token_refresh();
     }
     pub fn connect(&mut self) {
-        if self.access_token.is_some() && !self.is_token_expired() && false {
+        if self.access_token.is_some() && !self.is_token_expired() {
             println!("Reusing saved credentials.");
             let _ = self.schedule_token_refresh();
             return ()