aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikita Pekin <[email protected]>2018-01-24 22:47:14 -0500
committerZeyla Hellyer <[email protected]>2018-01-24 19:47:14 -0800
commit55fa37ade187aa68ef3eec519d22767920aae4ab (patch)
tree044ad21f77c6f69e8ecddf10cb5e090e0c24858b /src
parentStrip RTP header extensions from voice stream (diff)
downloadserenity-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.rs2
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;
}
}