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:
parent
4a0d5e7e96
commit
221b33197e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue