aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-10-09 23:41:41 -0500
committermat <github@matdoes.dev>2022-10-09 23:41:41 -0500
commit221b33197e2a084317e23c0d41fa6d4a6aab2e7b (patch)
tree228f0d5a939630585717a11574196a89a06f12dc /azalea-protocol
parent4a0d5e7e96a795e3c30deb49723e4cc3d730e37c (diff)
downloadazalea-drasl-221b33197e2a084317e23c0d41fa6d4a6aab2e7b.tar.xz
fix panic
Diffstat (limited to 'azalea-protocol')
-rw-r--r--azalea-protocol/src/read.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs
index 61d5d914..16820846 100644
--- a/azalea-protocol/src/read.rs
+++ b/azalea-protocol/src/read.rs
@@ -212,7 +212,7 @@ where
// if we were given a cipher, decrypt the packet
if let Some(message) = framed.next().await {
- let mut bytes = message.unwrap();
+ let mut bytes = message?;
if let Some(cipher) = cipher {
azalea_crypto::decrypt_packet(cipher, &mut bytes);