From 5914d10498179ea06a0b10224efb70c5be19ba5c Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sat, 4 Feb 2023 22:27:19 +0100 Subject: [PATCH] comment --- kubi-udp/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubi-udp/src/client.rs b/kubi-udp/src/client.rs index 55d0917..8707e18 100644 --- a/kubi-udp/src/client.rs +++ b/kubi-udp/src/client.rs @@ -140,8 +140,8 @@ impl Client where S: Encode + Decode, R: Encode + Decode { return Ok(()) }, ServerPacket::Disconnected(reason) => { - //this should never fail but we're handling the error anyway let reason = DisconnectReason::KickedByServer(reason); + //this should never fail but we're handling the error anyway self.disconnect_inner(reason, true)?; return Ok(()) },