1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

fix panic

This commit is contained in:
mat 2022-10-09 23:41:41 -05:00
parent 4a0d5e7e96
commit 221b33197e

View file

@ -212,7 +212,7 @@ where
// if we were given a cipher, decrypt the packet // if we were given a cipher, decrypt the packet
if let Some(message) = framed.next().await { if let Some(message) = framed.next().await {
let mut bytes = message.unwrap(); let mut bytes = message?;
if let Some(cipher) = cipher { if let Some(cipher) = cipher {
azalea_crypto::decrypt_packet(cipher, &mut bytes); azalea_crypto::decrypt_packet(cipher, &mut bytes);