mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-22 11:58:21 -06:00
add log to disconnect_inner
This commit is contained in:
parent
f19683c1b1
commit
32963044f3
|
@ -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