Print Spotify connection message only once

To avoid the terminal output getting garbled when ncspot is reconnecting
This commit is contained in:
Henrik Friedrichsen
2021-05-24 21:03:25 +02:00
parent b7ab1202b8
commit 0d405cf221
2 changed files with 1 additions and 1 deletions

View File

@@ -168,6 +168,7 @@ async fn main() {
let event_manager = EventManager::new(cursive.cb_sink().clone());
println!("Connecting to Spotify..");
let spotify = spotify::Spotify::new(event_manager.clone(), credentials, cfg.clone());
let queue = Arc::new(queue::Queue::new(spotify.clone(), cfg.clone()));

View File

@@ -178,7 +178,6 @@ impl Spotify {
)
.expect("Could not create cache");
debug!("opening spotify session");
println!("Connecting to Spotify..");
Session::connect(session_config, credentials, Some(cache)).await
}