1
0
Fork 0
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:
Konstantin Seiler 2019-11-02 06:46:28 +11:00
parent ef28df6301
commit 333fc5010c
7 changed files with 944 additions and 119 deletions

View file

@ -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));