aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_player.rs
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-01-25 16:30:37 +0100
committerJokler <jokler@protonmail.com>2020-01-29 20:39:27 +0100
commit7be0a2f10f0cfeb89b2f498cfae316b35dcb0814 (patch)
tree78474e06ce8c84f99569394345f4b9d7387f4b22 /src/audio_player.rs
parent972adef5626706f9a192ff784ecc22d1a56b1fe4 (diff)
downloadpokebot-7be0a2f10f0cfeb89b2f498cfae316b35dcb0814.tar.gz
pokebot-7be0a2f10f0cfeb89b2f498cfae316b35dcb0814.zip
Fix quit method not stopping audio playback
Diffstat (limited to 'src/audio_player.rs')
-rw-r--r--src/audio_player.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/audio_player.rs b/src/audio_player.rs
index 2ff7c11..97ecfbf 100644
--- a/src/audio_player.rs
+++ b/src/audio_player.rs
@@ -313,6 +313,7 @@ impl AudioPlayer {
MessageView::Application(content) => {
if let Some(s) = content.get_structure() {
if s.get_name() == "quit" {
+ self.reset().unwrap();
return PollResult::Quit;
}
}