mirror of
https://github.com/Dummi26/musicdb.git
synced 2025-03-10 14:13:53 +01:00
fix bug with Multiple action broadcasting twice
This commit is contained in:
parent
b752ea5112
commit
d39d030640
@ -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),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user