Driver: Fix incorrect leave behaviour in Drop handler

Sending poison messages should suffice to kill the voice session: attempting to `.leave()`. Fixes #88.

This was tested using `cargo make ready` and the modified `serenity/voice/` example.
This commit is contained in:
Kyle Simpson
2021-08-17 12:14:50 +01:00
parent 3efe756ca5
commit dad48ca835
3 changed files with 7 additions and 3 deletions

View File

@@ -18,4 +18,4 @@ features = ["client", "standard_framework", "voice", "rustls_backend"]
[dependencies.tokio]
version = "1.0"
features = ["macros", "rt-multi-thread"]
features = ["macros", "rt-multi-thread", "signal"]