diff options
| -rw-r--r-- | examples/01_basic_ping_bot/Cargo.toml | 4 | ||||
| -rw-r--r-- | examples/02_transparent_guild_sharding/Cargo.toml | 4 | ||||
| -rw-r--r-- | examples/03_struct_utilities/Cargo.toml | 4 | ||||
| -rw-r--r-- | examples/04_message_builder/Cargo.toml | 4 | ||||
| -rw-r--r-- | examples/05_user_login/Cargo.toml | 4 | ||||
| -rw-r--r-- | examples/06_command_framework/Cargo.toml | 4 | ||||
| -rw-r--r-- | examples/07_voice/Cargo.toml | 4 | ||||
| -rw-r--r-- | src/ext/voice/connection.rs | 3 |
8 files changed, 16 insertions, 15 deletions
diff --git a/examples/01_basic_ping_bot/Cargo.toml b/examples/01_basic_ping_bot/Cargo.toml index 603ee6b..fe2ad00 100644 --- a/examples/01_basic_ping_bot/Cargo.toml +++ b/examples/01_basic_ping_bot/Cargo.toml @@ -3,5 +3,5 @@ name = "01_basic_ping_bot" version = "0.1.0" authors = ["my name <[email protected]>"] -[dependencies] -serenity = { git = "https://github.com/zeyla/serenity.rs.git" } +[dependencies.serenity] +git = "https://github.com/zeyla/serenity.rs.git" diff --git a/examples/02_transparent_guild_sharding/Cargo.toml b/examples/02_transparent_guild_sharding/Cargo.toml index 3899f6d..06038d4 100644 --- a/examples/02_transparent_guild_sharding/Cargo.toml +++ b/examples/02_transparent_guild_sharding/Cargo.toml @@ -3,5 +3,5 @@ name = "02_transparent_guild_sharding" version = "0.1.0" authors = ["my name <[email protected]>"] -[dependencies] -serenity = { git = "https://github.com/zeyla/serenity.rs.git" } +[dependencies.serenity] +git = "https://github.com/zeyla/serenity.rs.git" diff --git a/examples/03_struct_utilities/Cargo.toml b/examples/03_struct_utilities/Cargo.toml index 2153419..0c9438c 100644 --- a/examples/03_struct_utilities/Cargo.toml +++ b/examples/03_struct_utilities/Cargo.toml @@ -3,6 +3,6 @@ name = "03_struct_utilities" version = "0.1.0" authors = ["my name <[email protected]>"] -[dependencies] -serenity = { git = "https://github.com/zeyla/serenity.rs.git" } +[dependencies.serenity] +git = "https://github.com/zeyla/serenity.rs.git" features = ["methods"] diff --git a/examples/04_message_builder/Cargo.toml b/examples/04_message_builder/Cargo.toml index cf0108f..1db1e4e 100644 --- a/examples/04_message_builder/Cargo.toml +++ b/examples/04_message_builder/Cargo.toml @@ -3,5 +3,5 @@ name = "04_message_builder" version = "0.1.0" authors = ["my name <[email protected]>"] -[dependencies] -serenity = { git = "https://github.com/zeyla/serenity.rs.git" } +[dependencies.serenity] +git = "https://github.com/zeyla/serenity.rs.git" diff --git a/examples/05_user_login/Cargo.toml b/examples/05_user_login/Cargo.toml index 0f0a19e..10c00c5 100644 --- a/examples/05_user_login/Cargo.toml +++ b/examples/05_user_login/Cargo.toml @@ -3,5 +3,5 @@ name = "05_user_login" version = "0.1.0" authors = ["my name <[email protected]>"] -[dependencies] -serenity = { git = "https://github.com/zeyla/serenity.rs.git" } +[dependencies.serenity] +git = "https://github.com/zeyla/serenity.rs.git" diff --git a/examples/06_command_framework/Cargo.toml b/examples/06_command_framework/Cargo.toml index 26cfca9..ff99f7d 100644 --- a/examples/06_command_framework/Cargo.toml +++ b/examples/06_command_framework/Cargo.toml @@ -3,6 +3,6 @@ name = "06_command_framework" version = "0.1.0" authors = ["my name <[email protected]>"] -[dependencies] -serenity = { git = "https://github.com/zeyla/serenity.rs.git" } +[dependencies.serenity] +git = "https://github.com/zeyla/serenity.rs.git" features = ["framework", "methods"] diff --git a/examples/07_voice/Cargo.toml b/examples/07_voice/Cargo.toml index 20c32bc..0d9f501 100644 --- a/examples/07_voice/Cargo.toml +++ b/examples/07_voice/Cargo.toml @@ -3,6 +3,6 @@ name = "07_voice" version = "0.1.0" authors = ["my name <[email protected]>"] -[dependencies] -serenity = { git = "https://github.com/zeyla/serenity.rs.git" } +[dependencies.serenity] +git = "https://github.com/zeyla/serenity.rs.git" features = ["cache", "framework", "methods", "voice"] 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"); } |