diff options
| author | mat <github@matdoes.dev> | 2022-10-09 23:41:41 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-10-09 23:41:41 -0500 |
| commit | 221b33197e2a084317e23c0d41fa6d4a6aab2e7b (patch) | |
| tree | 228f0d5a939630585717a11574196a89a06f12dc /azalea-protocol/src | |
| parent | 4a0d5e7e96a795e3c30deb49723e4cc3d730e37c (diff) | |
| download | azalea-drasl-221b33197e2a084317e23c0d41fa6d4a6aab2e7b.tar.xz | |
fix panic
Diffstat (limited to 'azalea-protocol/src')
| -rw-r--r-- | azalea-protocol/src/read.rs | 2 |
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); |
