fix bug with Multiple action broadcasting twice

This commit is contained in:
Mark 2025-01-04 12:51:53 +01:00
parent b752ea5112
commit d39d030640

View File

@ -573,6 +573,8 @@ impl Database {
Action::NextSong if self.queue.is_almost_empty() => (), Action::NextSong if self.queue.is_almost_empty() => (),
Action::Pause if !self.playing => (), Action::Pause if !self.playing => (),
Action::Resume if self.playing => (), Action::Resume if self.playing => (),
// will be broadcast individually
Action::Multiple(_) => (),
// since db.update_endpoints is empty for clients, this won't cause unwanted back and forth // since db.update_endpoints is empty for clients, this won't cause unwanted back and forth
_ => action = self.broadcast_update(action, client), _ => action = self.broadcast_update(action, client),
} }