mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-25 21:28:20 -06:00
add log to disconnect_inner
This commit is contained in:
parent
1b476819d8
commit
ed721ea91c
|
@ -99,6 +99,7 @@ impl<S, R> Client<S, R> where S: Message, R: Message {
|
|||
}
|
||||
|
||||
fn disconnect_inner(&mut self, reason: DisconnectReason, silent: bool) -> Result<()> {
|
||||
log::info!("client disconnected because {reason:?}");
|
||||
if !silent {
|
||||
self.send_raw_packet(ClientPacket::Disconnect)?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue