diff options
| author | Nikita Pekin <[email protected]> | 2018-01-24 22:47:14 -0500 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-01-24 19:47:14 -0800 |
| commit | 55fa37ade187aa68ef3eec519d22767920aae4ab (patch) | |
| tree | 044ad21f77c6f69e8ecddf10cb5e090e0c24858b /src | |
| parent | Strip RTP header extensions from voice stream (diff) | |
| download | serenity-55fa37ade187aa68ef3eec519d22767920aae4ab.tar.xz serenity-55fa37ade187aa68ef3eec519d22767920aae4ab.zip | |
Fix voice websocket loop termination
The websocket loop for voice events is terminated whenever a websocket
message is successfully sent. This is caused by a bug that was
introduced in
https://github.com/zeyla/serenity/commit/c8536c111117f26833fb1bceff734ac1abc55479#diff-6a8a0bad68abd05790cdc2c2ba043ec6L457,
due to an improperly implemented clippy lint.
Diffstat (limited to 'src')
| -rw-r--r-- | src/voice/connection.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/voice/connection.rs b/src/voice/connection.rs index 1b018cb..29a426c 100644 --- a/src/voice/connection.rs +++ b/src/voice/connection.rs @@ -489,7 +489,7 @@ fn start_threads(client: Arc<Mutex<Client>>, udp: &UdpSocket) -> Result<ThreadIt }, }; - if tx_clone.send(ReceiverStatus::Websocket(msg)).is_ok() { + if tx_clone.send(ReceiverStatus::Websocket(msg)).is_err() { return; } } |