mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Use configured client ID on initial connection (fixes #941)
This commit is contained in:
parent
f2625965b3
commit
0822af0328
1 changed files with 6 additions and 1 deletions
|
@ -105,9 +105,14 @@ impl Session {
|
|||
|
||||
debug!("new Session");
|
||||
|
||||
let session_data = SessionData {
|
||||
client_id: config.client_id.clone(),
|
||||
..SessionData::default()
|
||||
};
|
||||
|
||||
Self(Arc::new(SessionInternal {
|
||||
config,
|
||||
data: RwLock::new(SessionData::default()),
|
||||
data: RwLock::new(session_data),
|
||||
http_client,
|
||||
tx_connection: OnceCell::new(),
|
||||
cache: cache.map(Arc::new),
|
||||
|
|
Loading…
Reference in a new issue