Don't log messages when sending player events over channel.

This commit is contained in:
Simon Persson 2018-02-20 23:31:33 +01:00
parent 23d3c1593f
commit 9ff6fe900c

View file

@ -416,10 +416,7 @@ impl PlayerInternal {
} }
fn send_event(&mut self, event: PlayerEvent) { fn send_event(&mut self, event: PlayerEvent) {
match self.event_sender.unbounded_send(event.clone()) { let _ = self.event_sender.unbounded_send(event.clone());
Ok(_) => info!("Sent event {:?} to event listener.", event),
Err(err) => error!("Failed to send event {:?} to listener: {:?}", event, err)
}
} }
fn find_available_alternative<'a>(&self, track: &'a Track) -> Option<Cow<'a, Track>> { fn find_available_alternative<'a>(&self, track: &'a Track) -> Option<Cow<'a, Track>> {