mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-05 19:42:03 +02:00
New file downloading mechanism
This commit is contained in:
parent
ef28df6301
commit
333fc5010c
7 changed files with 944 additions and 119 deletions
|
@ -59,6 +59,8 @@ impl ChannelManager {
|
|||
|
||||
let id: u16 = BigEndian::read_u16(data.split_to(2).as_ref());
|
||||
|
||||
trace!("Received data for channel {}: {} bytes.", id, data.len());
|
||||
|
||||
self.lock(|inner| {
|
||||
if let Entry::Occupied(entry) = inner.channels.entry(id) {
|
||||
let _ = entry.get().unbounded_send((cmd, data));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue