Removed send_msg in Action::Load(path) => ... due to non-existed receiver.

This commit is contained in:
Sheldon Knuth 2019-07-02 20:04:24 +08:00
parent cdda20a1e8
commit de9d05999d

View File

@ -166,7 +166,6 @@ impl MonoMode for AudioPlayer {
Action::Load(path) => {
if playback.stream.empty() {
playback.play_from(&path);
send_msg(&mut tx, AudioPlayerMsg::AudioPlay);
}
}
Action::Stop => playback.stream.stop(),