Skip to content

Commit

Permalink
Don't log event deserialization failures in voice
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyla Hellyer committed Sep 15, 2018
1 parent 8b3e819 commit 08511da
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/voice/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,11 +585,7 @@ fn start_threads(client: Arc<Mutex<Client>>, udp: &UdpSocket) -> Result<ThreadIt
while let Ok(Some(value)) = client.lock().recv_json() {
let msg = match VoiceEvent::deserialize(value) {
Ok(msg) => msg,
Err(why) => {
warn!("Error deserializing voice event: {:?}", why);

break;
},
Err(why) => break,
};

if tx_clone.send(ReceiverStatus::Websocket(msg)).is_err() {
Expand Down

0 comments on commit 08511da

Please sign in to comment.