mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-04 10:19:27 +02:00
Fix build on latest rust.
This commit is contained in:
parent
ab7b5ba69d
commit
267ccbe65e
14 changed files with 292 additions and 258 deletions
|
@ -1,4 +1,3 @@
|
|||
#![feature(scoped)]
|
||||
#![feature(result_expect)]
|
||||
#![allow(deprecated)]
|
||||
|
||||
|
@ -71,9 +70,10 @@ fn main() {
|
|||
session.login(username.clone(), password);
|
||||
session.poll();
|
||||
|
||||
let poll_thread = thread::scoped(|| {
|
||||
let _session = session.clone();
|
||||
thread::spawn(move || {
|
||||
loop {
|
||||
session.poll();
|
||||
_session.poll();
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -81,7 +81,5 @@ fn main() {
|
|||
|
||||
let mut spirc_manager = SpircManager::new(&session, player, username, name);
|
||||
spirc_manager.run();
|
||||
|
||||
poll_thread.join();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue