fix(mpd): stops working if connection lost
The client will now attempt to reconnect when a connection loss is detected. Fixes #21.
This commit is contained in:
@@ -170,7 +170,7 @@ impl Client {
|
||||
|
||||
let track = Track::from(metadata);
|
||||
|
||||
let player_update: PlayerUpdate = (Some(track), status);
|
||||
let player_update = PlayerUpdate::Update(Box::new(Some(track)), status);
|
||||
|
||||
tx.send(player_update)
|
||||
.expect("Failed to send player update");
|
||||
|
||||
Reference in New Issue
Block a user