Print Spotify connection message only once
To avoid the terminal output getting garbled when ncspot is reconnecting
This commit is contained in:
@@ -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()));
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user