mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-24 04:48:21 -06:00
comment
This commit is contained in:
parent
bbfde7f0eb
commit
5914d10498
|
@ -140,8 +140,8 @@ impl<S, R> Client<S, R> where S: Encode + Decode, R: Encode + Decode {
|
||||||
return Ok(())
|
return Ok(())
|
||||||
},
|
},
|
||||||
ServerPacket::Disconnected(reason) => {
|
ServerPacket::Disconnected(reason) => {
|
||||||
//this should never fail but we're handling the error anyway
|
|
||||||
let reason = DisconnectReason::KickedByServer(reason);
|
let reason = DisconnectReason::KickedByServer(reason);
|
||||||
|
//this should never fail but we're handling the error anyway
|
||||||
self.disconnect_inner(reason, true)?;
|
self.disconnect_inner(reason, true)?;
|
||||||
return Ok(())
|
return Ok(())
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue