aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-30 09:46:36 -0800
committerAustin Hellyer <[email protected]>2016-11-30 09:46:36 -0800
commit9889248ec504ab5ba6fd4efa982adf96564ccbde (patch)
tree4a823bdeceef3b10108c3df7890f2d3f574d7164 /src
parentExample should be no-run (diff)
downloadserenity-9889248ec504ab5ba6fd4efa982adf96564ccbde.tar.xz
serenity-9889248ec504ab5ba6fd4efa982adf96564ccbde.zip
Re-order example Cargo.toml's
Diffstat (limited to 'src')
-rw-r--r--src/ext/voice/connection.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ext/voice/connection.rs b/src/ext/voice/connection.rs
index f88a3ff..b977d59 100644
--- a/src/ext/voice/connection.rs
+++ b/src/ext/voice/connection.rs
@@ -368,7 +368,8 @@ impl Connection {
impl Drop for Connection {
fn drop(&mut self) {
- let _ = self.sender.get_mut().shutdown(Shutdown::Both);
+ let _ = self.thread_items.udp_close_sender.send(0);
+ let _ = self.thread_items.ws_close_sender.send(0);
info!("[Voice] Disconnected");
}