1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-05 20:41:04 +02:00

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:
Jake Stanger 2023-01-28 14:40:12 +00:00
parent 1cdfebf8db
commit 90cd078973
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
4 changed files with 67 additions and 25 deletions

View file

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